From: Patrick Gundlach Date: 2005-12-18T19:47:46+09:00 Subject: Re: Rescuing SyntaxError > Sure thing. Is there any way to catch it though? Yes, when you read from a file: begin require "errorfile" rescue SyntaxError puts "Syntax Error!" end erorfile.rb: -------------------------------------------------- puts "this is a string -------------------------------------------------- This is what I use with my cgi scripts / PrettyException.rb Patrick