Log useful information on 500's

* include error message in error (!!)
* add test verifying error message is correct for service ip allocation
This commit is contained in:
Daniel Smith
2016-08-30 16:56:56 -07:00
parent 1dfd6ab0c1
commit 1a23f5a79f
4 changed files with 66 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ func NewGenericServerResponse(code int, verb string, qualifiedResource unversion
default:
if code >= 500 {
reason = unversioned.StatusReasonInternalError
message = "an error on the server has prevented the request from succeeding"
message = fmt.Sprintf("an error on the server (%q) has prevented the request from succeeding", serverMessage)
}
}
switch {