reverse order of arguments in error message. (#1196)

Fixing bug introduced in #1195
This commit is contained in:
Victor Vrantchan
2017-02-09 20:09:06 -05:00
committed by GitHub
parent 430a267b57
commit ec1c3b3b94
+1 -1
View File
@@ -54,7 +54,7 @@ func encodeError(ctx context.Context, err error, w http.ResponseWriter) {
if e, ok := err.(licensingError); ok {
le := jsonError{
Message: "Licensing Error",
Errors: namedError(e.LicensingError(), "license"),
Errors: namedError("license", e.LicensingError()),
}
w.WriteHeader(http.StatusPaymentRequired)
enc.Encode(le)