Skip to content

Commit

Permalink
[yegor256#304] fix bug in code
Browse files Browse the repository at this point in the history
  • Loading branch information
mbao01 committed Dec 15, 2021
1 parent d83ff55 commit f67a102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run
out += stdout.read_nonblock(8) until stdout.eof?
err = stderr.read
code = thr.value.exitstatus
code = 1 if !thr.value.exited
code = 1 if !thr.value.exited?
unless code.zero?
raise Error.new(
code, "#{c} [#{code}]:\n#{err}\n#{out}"
Expand Down

0 comments on commit f67a102

Please sign in to comment.