Improve error messages on authentication failure
This commit is contained in:
parent
58b8b461e3
commit
a9883efc4a
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue