Skip to content

Commit d0f2769

Browse files
committed
print compile error instead of reason for better visibility in report
1 parent 1be585e commit d0f2769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/catalog-diff/compilecatalog.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def compile_catalog(node_name, server, certless, tls_cert, tls_key, tls_ca)
104104
else
105105
Puppet.runtime[:http].get(uri, headers: headers, options: { ssl_context: ssl_context })
106106
end
107-
raise "HTTP request to Puppetserver #{server} failed with: HTTP #{ret.code} - #{ret.reason}" unless ret.success?
107+
raise "HTTP request to Puppetserver #{server} failed with: HTTP #{ret.code} - #{ret.body}" unless ret.success?
108108
rescue Exception => e
109109
raise "Failed to retrieve catalog for #{node_name} from #{server} in environment #{environment}: #{e.message}"
110110
end

0 commit comments

Comments
 (0)