mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-01 09:26:38 +00:00
chore(errors): always add internal error to echo error
This commit is contained in:
@@ -83,7 +83,7 @@ func (mw *MigrationWeb) Migrate(c echo.Context) error {
|
||||
// Bind user request stuff
|
||||
err = c.Bind(ms)
|
||||
if err != nil {
|
||||
return echo.NewHTTPError(http.StatusBadRequest, "No or invalid model provided: "+err.Error())
|
||||
return echo.NewHTTPError(http.StatusBadRequest, "No or invalid model provided: "+err.Error()).SetInternal(err)
|
||||
}
|
||||
|
||||
err = events.Dispatch(&MigrationRequestedEvent{
|
||||
|
||||
Reference in New Issue
Block a user