mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
⚠️ assigned but unused variable - err
This commit is contained in:
parent
0b0042cfcd
commit
96b9609e2b
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ elsif File.exist?(code_or_file)
|
||||||
Kernel.load code_or_file
|
Kernel.load code_or_file
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
eval(code_or_file, binding, __FILE__, __LINE__)
|
eval(code_or_file, binding, __FILE__, __LINE__)
|
||||||
rescue SyntaxError,NameError => err
|
rescue SyntaxError, NameError
|
||||||
$stderr.puts "Please specify a valid ruby command or the path of a script to run."
|
$stderr.puts "Please specify a valid ruby command or the path of a script to run."
|
||||||
$stderr.puts "Run '#{$0} -h' for help."
|
$stderr.puts "Run '#{$0} -h' for help."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue