mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #12970 from prathamesh-sonpatki/issue12885
Add positional information to eval call so that this information will be used in printing correct location where the exception occurred. Closes #12885.
This commit is contained in:
commit
68aebd4895
1 changed files with 1 additions and 1 deletions
|
@ -50,5 +50,5 @@ elsif File.exist?(code_or_file)
|
||||||
$0 = code_or_file
|
$0 = code_or_file
|
||||||
Kernel.load code_or_file
|
Kernel.load code_or_file
|
||||||
else
|
else
|
||||||
eval(code_or_file)
|
eval(code_or_file, binding, __FILE__, __LINE__)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue