diff options
| author | Luke Kanies <luke@madstop.com> | 2009-07-23 16:07:05 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-08-01 10:58:04 +1000 |
| commit | 6d22afb241b290dcfc6a95079a2297afedb8ce96 (patch) | |
| tree | 78aeba23fac1f3a66af78884aae7817a22a45e5a | |
| parent | 21f477a57c2e1dc1ce4b47ea6ee37f8eef46e40c (diff) | |
| download | puppet-6d22afb241b290dcfc6a95079a2297afedb8ce96.tar.gz puppet-6d22afb241b290dcfc6a95079a2297afedb8ce96.tar.xz puppet-6d22afb241b290dcfc6a95079a2297afedb8ce96.zip | |
Modifying the REST client error to make server errors more clear
Signed-off-by: Luke Kanies <luke@madstop.com>
| -rw-r--r-- | lib/puppet/indirector/rest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/indirector/rest.rb b/lib/puppet/indirector/rest.rb index 909be9a45..4d818c986 100644 --- a/lib/puppet/indirector/rest.rb +++ b/lib/puppet/indirector/rest.rb @@ -49,7 +49,7 @@ class Puppet::Indirector::REST < Puppet::Indirector::Terminus end else # Raise the http error if we didn't get a 'success' of some kind. - message = "Server returned %s: %s" % [response.code, response.message] + message = "Error %s on SERVER: %s" % [response.code, response.message] raise Net::HTTPError.new(message, response) end end |
