diff options
author | Daniel RodrÃguez Troitiño <drodrigueztroitino@yahoo.es> | 2008-08-04 12:31:05 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-08-08 10:48:52 +0200 |
commit | 06e4eb49eaabde76e38e4f275619fe2df51f1e0a (patch) | |
tree | 8bc6e7d99eb5a6596e250b9593d947d1df5f5911 | |
parent | 14cf9a89919b72df301016e4596855c2112c6cef (diff) | |
download | rails-06e4eb49eaabde76e38e4f275619fe2df51f1e0a.tar.gz rails-06e4eb49eaabde76e38e4f275619fe2df51f1e0a.tar.bz2 rails-06e4eb49eaabde76e38e4f275619fe2df51f1e0a.zip |
Added file name information for errors and exceptions in script/runnner
Signed-off-by: Michael Koziarski <michael@koziarski.com>
-rw-r--r-- | railties/lib/commands/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/runner.rb b/railties/lib/commands/runner.rb index 926bc26344..14159c3893 100644 --- a/railties/lib/commands/runner.rb +++ b/railties/lib/commands/runner.rb @@ -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 |