Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
commit 06e4eb49eaabde76e38e4f275619fe2df51f1e0a 1 parent 14cf9a8
@drodriguez drodriguez authored NZKoz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/commands/runner.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.