diff --git a/internal/api/hooks.go b/internal/api/hooks.go index 3a5512d40e..14e2b3cd4b 100644 --- a/internal/api/hooks.go +++ b/internal/api/hooks.go @@ -179,7 +179,7 @@ func (a *API) runHTTPHook(r *http.Request, hookConfig conf.ExtensibilityPointCon case http.StatusUnauthorized: return nil, internalServerError("Hook requires authorization token") default: - return nil, internalServerError("Error executing Hook") + return nil, internalServerError("Unexpected status code returned from hook: %d", rsp.StatusCode) } } return nil, nil