Fix build failure in web-handlers.go

This commit is contained in:
Harshavardhana 2019-06-03 16:44:05 -07:00
parent d16a409943
commit 97be455f63

View File

@ -879,7 +879,7 @@ func (web *webAPIHandlers) SetAuth(r *http.Request, args *SetAuthArgs, reply *Se
err = globalIAMSys.SetUserSecretKey(creds.AccessKey, creds.SecretKey)
if err != nil {
return toJSONError(err)
return toJSONError(ctx, err)
}
reply.Token, err = authenticateWeb(creds.AccessKey, creds.SecretKey)