summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/network/http/handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/http/handler.rb b/lib/puppet/network/http/handler.rb
index 7c7abccf5..7af0528eb 100644
--- a/lib/puppet/network/http/handler.rb
+++ b/lib/puppet/network/http/handler.rb
@@ -66,7 +66,7 @@ module Puppet::Network::HTTP::Handler
def do_exception(response, exception, status=400)
if exception.is_a?(Exception)
puts exception.backtrace if Puppet[:trace]
- puts exception if Puppet[:trace]
+ Puppet.err(exception)
end
set_content_type(response, "text/plain")
set_response(response, exception.to_s, status)