Skip to content

Commit

Permalink
Merge pull request #39 from isimluk/publish-stderr-when-problem-occurs
Browse files Browse the repository at this point in the history
Show stderr when error occurs on command execution
  • Loading branch information
jrafanie authored Mar 4, 2017
2 parents 77519d4 + 5c53830 commit 6fa0e9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/awesome_spawn/command_result_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def self.default_message(command, exit_status)
attr_reader :result

def initialize(message, result)
message += " error was: #{result.error}" if !result.nil? && !result.error.empty?
super(message)
@result = result
end
Expand Down

0 comments on commit 6fa0e9b

Please sign in to comment.