summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-05-29 15:31:39 -0700
committerClaire McQuin <claire@getchef.com>2014-06-03 09:17:42 -0700
commitfaa14726e3610b616b1eeae91037875ae8e84fdd (patch)
treea5951a8e3e8170ef383d2f2c37d6f86da63ab95c
parent4ba8d28467a763762596a38eb930a480d88fff06 (diff)
downloadchef-faa14726e3610b616b1eeae91037875ae8e84fdd.tar.gz
update error message
-rw-r--r--lib/chef/application.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index da06438f8e..bf19a53c8b 100644
--- a/lib/chef/application.rb
+++ b/lib/chef/application.rb
@@ -308,7 +308,10 @@ class Chef::Application
return URI::Generic.build(parts).to_s
rescue URI::Error => e
- raise Chef::Exceptions::BadProxyURI, e.message
+ # URI::Error messages generally include the offending string. Including a message
+ # for which proxy config item has the issue should help deduce the issue when
+ # the URI::Error message is vague.
+ raise Chef::Exceptions::BadProxyURI, "Cannot configure #{scheme} proxy. Does not comply with URI scheme. #{e.message}"
end
end