From 0304a78c0fe3802e4fb7466c3eac111d45f8eed7 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sat, 14 Feb 2009 12:57:27 -0600 Subject: Providing better information when an exception is encountered during network communication Signed-off-by: Luke Kanies --- lib/puppet/network/http/handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit