Skip to content

Commit

Permalink
Merge pull request #12970 from prathamesh-sonpatki/issue12885
Browse files Browse the repository at this point in the history
Add positional information to eval call so that this information will be used in printing correct location where the exception occurred.

Closes #12885.
  • Loading branch information
carlosantoniodasilva committed Nov 21, 2013
1 parent 14ef77b commit 5da96e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/runner.rb
Expand Up @@ -50,5 +50,5 @@
$0 = code_or_file $0 = code_or_file
eval(File.read(code_or_file), nil, code_or_file) eval(File.read(code_or_file), nil, code_or_file)
else else
eval(code_or_file) eval(code_or_file, binding, __FILE__, __LINE__)
end end

0 comments on commit 5da96e0

Please sign in to comment.