chore(errors): always add internal error to echo error
(cherry picked from commit 7a7e97770c9ecc10e805069ae16c2ffa2779d2a5)
This commit is contained in:
@ -52,7 +52,7 @@ type userWithSettings struct {
|
||||
func UserShow(c echo.Context) error {
|
||||
a, err := auth.GetAuthFromClaims(c)
|
||||
if err != nil {
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "Error getting current user.")
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "Error getting current user.").SetInternal(err)
|
||||
}
|
||||
|
||||
s := db.NewSession()
|
||||
|
Reference in New Issue
Block a user