We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2141ccd commit c401b72Copy full SHA for c401b72
lib/system_command_helper.rb
@@ -10,7 +10,7 @@ def sys(cmd)
10
unless @no_exec
11
result = system cmd
12
if result != 0 && @on_error
13
- @on_error.call(cmd)
+ @on_error.call(cmd, result)
14
end
15
result
16
0 commit comments