Skip to content

Commit

Permalink
Output error message if ipptool fails
Browse files Browse the repository at this point in the history
  • Loading branch information
imphil committed Jun 6, 2016
1 parent b9e562a commit ce37a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet_x/cups/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Server
class IppResult
def initialize(request, resource = '/')
@output, @error, process = query(resource, request)
raise('Unexpected response from CUPS server.') if process.exitstatus != 0
raise("Unexpected response from CUPS server.\nresource:#{resource}\nrequest:\n#{request}\nSTDOUT:\n#{@output}\nSTDERR:\n#{@error}") if process.exitstatus != 0
end

def lines
Expand Down

0 comments on commit ce37a0d

Please sign in to comment.