Skip to content

Commit c401b72

Browse files
committed
error handle
1 parent 2141ccd commit c401b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system_command_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def sys(cmd)
1010
unless @no_exec
1111
result = system cmd
1212
if result != 0 && @on_error
13-
@on_error.call(cmd)
13+
@on_error.call(cmd, result)
1414
end
1515
result
1616
end

0 commit comments

Comments
 (0)