Added file name information for errors and exceptions in script/runnner

Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
Daniel Rodríguez Troitiño 2008-08-04 12:31:05 +02:00 committed by Michael Koziarski
parent 14cf9a8991
commit 06e4eb49ea
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ if code_or_file.nil?
$stderr.puts "Run '#{$0} -h' for help."
exit 1
elsif File.exist?(code_or_file)
eval(File.read(code_or_file))
eval(File.read(code_or_file), nil, code_or_file)
else
eval(code_or_file)
end