From: Christian Szegedy Date: 2001-12-07T00:33:09+09:00 Subject: [ruby-talk:27696] Re: Controlling the error messages of eval. ts wrote: > Try this > > C> begin > C> eval to_eval > C> rescue > C> p $! > C> puts "This error occured while processing :",to_eval > C> end > > begin > eval to_eval, nil, ifile_name, 1 > rescue Exception > p $! > puts "This error occured while processing :",to_eval > end > Guy Decoux Thanks a lot, it works excellent! It seems, I should have read the reference on eval, before posting trivial questions. Best regards, Christian