Fix error message.

pull/1370/head
sakamotomsh 2015-01-26 23:01:07 +09:00
parent f1d141af46
commit afa63c9e60
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ func (h *Handler) serveWrite(w http.ResponseWriter, r *http.Request, user *influ
} }
if h.requireAuthentication && !user.Authorize(influxql.WritePrivilege, br.Database) { if h.requireAuthentication && !user.Authorize(influxql.WritePrivilege, br.Database) {
writeError(influxdb.Result{Err: fmt.Errorf("%q user is not authorized to write to database %q", user.Name)}, http.StatusUnauthorized) writeError(influxdb.Result{Err: fmt.Errorf("%q user is not authorized to write to database %q", user.Name, br.Database)}, http.StatusUnauthorized)
return return
} }