Added file name information for errors and exceptions in script/runnner
Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
parent
14cf9a8991
commit
06e4eb49ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue