diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-14 12:57:27 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-18 22:38:42 -0600 |
commit | 0304a78c0fe3802e4fb7466c3eac111d45f8eed7 (patch) | |
tree | 960e3faef91c5acd634df33a87459642016e3c44 /lib/puppet | |
parent | 4a7cba3f2ed634c49bdfb2c3aba7153668c6afd0 (diff) | |
download | puppet-0304a78c0fe3802e4fb7466c3eac111d45f8eed7.tar.gz puppet-0304a78c0fe3802e4fb7466c3eac111d45f8eed7.tar.xz puppet-0304a78c0fe3802e4fb7466c3eac111d45f8eed7.zip |
Providing better information when an exception is encountered during network communication
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/network/http/handler.rb | 2 |
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) |