return as soon as the user cannot be authenticated.

pull/17/head
John Shahid 2013-10-26 14:07:02 -04:00
parent a9d9127741
commit ed30127f11
1 changed files with 1 additions and 0 deletions

View File

@ -485,6 +485,7 @@ func (self *HttpServer) tryAsClusterAdmin(w libhttp.ResponseWriter, r *libhttp.R
if err != nil {
w.WriteHeader(libhttp.StatusUnauthorized)
w.Write([]byte(err.Error()))
return
}
statusCode, body := yieldUser(user, yield)
w.WriteHeader(statusCode)