search for: snfault

Displaying 1 result from an estimated 1 matches for "snfault".

Did you mean: sefault
2006 Nov 02
2
Rescue don't work on web applications
...like to start a rescue showing the users the problems. render(:text => "<pre>" + CGI::escapeHTML(` begin /home/luc/radrails/cpe/public/startq_test.rb #{syntf.path} rescue NoMethodError,SyntaxError,NameError,StandardError,SystemExit,ScriptError => snfault fltlog = File.open("/test/result/script.log", "w") fltlog.puts "#{snfault}" fltlog.close end `) + "</pre>") Rescue don''t work in this case, how can I check syntax errors? -- Posted via http://www....