mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-05 19:36:46 +00:00
chore(errors): always add internal error to echo error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user