Permalink
Browse files

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

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent 14cf9a8 commit 06e4eb49eaabde76e38e4f275619fe2df51f1e0a @drodriguez drodriguez committed with NZKoz Aug 4, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/runner.rb
@@ -42,7 +42,7 @@
$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

0 comments on commit 06e4eb4

Please sign in to comment.