aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-02-02 09:04:10 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-02-02 09:04:37 +0900
commit96b9609e2b006d7b75d099a29729fe8d805f12bf (patch)
tree18a9ac568d41c0db2fe9af2297c9091981ba252c
parent0b0042cfcda39c320df87018d2cdeed18e355b4f (diff)
downloadrails-96b9609e2b006d7b75d099a29729fe8d805f12bf.tar.gz
rails-96b9609e2b006d7b75d099a29729fe8d805f12bf.tar.bz2
rails-96b9609e2b006d7b75d099a29729fe8d805f12bf.zip
:warning: assigned but unused variable - err
-rw-r--r--railties/lib/rails/commands/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb
index babb197ba1..5844e9037c 100644
--- a/railties/lib/rails/commands/runner.rb
+++ b/railties/lib/rails/commands/runner.rb
@@ -59,8 +59,8 @@ elsif File.exist?(code_or_file)
Kernel.load code_or_file
else
begin
- eval(code_or_file, binding, __FILE__, __LINE__)
- rescue SyntaxError,NameError => err
+ eval(code_or_file, binding, __FILE__, __LINE__)
+ rescue SyntaxError, NameError
$stderr.puts "Please specify a valid ruby command or the path of a script to run."
$stderr.puts "Run '#{$0} -h' for help."
exit 1