Improve error messages on authentication failure

This commit is contained in:
Tobie Morgan Hitchcock 2018-01-31 08:52:21 +00:00
parent 58b8b461e3
commit a9883efc4a

View file

@ -447,6 +447,6 @@ func checkBearer(c *fibre.Context, info string, callback func() error) (err erro
}
return fibre.NewHTTPError(401).WithMessage("Invalid authentication details")
return fibre.NewHTTPError(401).WithMessage("Invalid authentication details: " + err.Error())
}