Fix error message
This commit is contained in:
parent
31b9690d74
commit
3be5b27d03
|
@ -89,9 +89,10 @@ func handleSubscriptionPage(c echo.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := app.Queries.Unsubscribe.Exec(campUUID, subUUID, blacklist); err != nil {
|
if _, err := app.Queries.Unsubscribe.Exec(campUUID, subUUID, blacklist); err != nil {
|
||||||
app.Logger.Printf("Error unsubscribing : %v", err)
|
app.Logger.Printf("error unsubscribing: %v", err)
|
||||||
return echo.NewHTTPError(http.StatusBadRequest,
|
return c.Render(http.StatusInternalServerError, "message",
|
||||||
"There was an internal error while unsubscribing you.")
|
makeMsgTpl("Error", "",
|
||||||
|
`Error processing request. Please retry.`))
|
||||||
}
|
}
|
||||||
return c.Render(http.StatusOK, "message",
|
return c.Render(http.StatusOK, "message",
|
||||||
makeMsgTpl("Unsubscribed", "",
|
makeMsgTpl("Unsubscribed", "",
|
||||||
|
|
Loading…
Reference in New Issue