Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Using ssi in errormod_crash

Guest
Posted: Fri Sep 21, 2007 12:06 am Reply with quote
Guest
Hi, all...

I'm having problems using ssi in errormod_crash under yaws-1.73. It works fine with errormod_404, but the identical code is failing in errormod_crash with the following message (the first error report is my deliberate crash of the server):

=ERROR REPORT==== 20-Sep-2007::17:47:47 ===


ERROR erlang code crashed:
File: appmod:0
Reason: {undef,[{crash,me,[hard]},
{ss,out,4},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p,5}]}
Req: {http_request,'GET',{abs_path,"/scripts/Demo.php"},{1,1}}
13>
=ERROR REPORT==== 20-Sep-2007::17:47:47 ===
<pre>
{badarg,[{yaws_api,ehtml_expand,1},
{yaws_server,safe_ehtml_expand,1},
{yaws_server,handle_crash,2},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p,5}]}
</pre>

It looks like the yaws_server code for delivering a 404 message is quite different than that for the crash message. Does anybody here know how I can send an ssi?

Here is the SSI code I'm using, for reference:

{ehtml, {ssi, ?THEME_HTML,
"%%", [{"title", Title ++
" :: " ++ App},
{"inline_title", Title},
{"version", "7.2"},
{"body", Body},
{"status", Status},
{"background_image", Background}]}}.

Thanks for any help you can offer,

--
Michael FIG <fig@marketelsystems.com>, PMP
MarkeTel Multi-Line Dialing Systems, Ltd.
Phone: (306) 359-6893 ext. 528



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum