chore(errors): always add internal error to echo error

This commit is contained in:
kolaente
2024-08-29 15:39:34 +02:00
parent bea131cfd9
commit 7a7e97770c
14 changed files with 45 additions and 50 deletions

View File

@@ -42,7 +42,7 @@ func UserConfirmEmail(c echo.Context) error {
// Check for Request Content
var emailConfirm user.EmailConfirm
if err := c.Bind(&emailConfirm); err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "No token provided.")
return echo.NewHTTPError(http.StatusBadRequest, "No token provided.").SetInternal(err)
}
s := db.NewSession()