mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-20 14:14:47 +01:00
Custom HTTP error handler and send sentry notifications
This commit is contained in:
@@ -39,8 +39,7 @@ func (controller *AuthController) Auth(c echo.Context) error {
|
||||
|
||||
accessToken, refreshToken, err := controller.svc.GenerateToken(body.Login, body.Password, body.RefreshToken)
|
||||
if err != nil {
|
||||
c.Logger().Infof("Generate Token error %v", err)
|
||||
return c.JSON(http.StatusBadRequest, responses.BadAuthError)
|
||||
return err
|
||||
}
|
||||
|
||||
return c.JSON(http.StatusOK, echo.Map{
|
||||
|
||||
Reference in New Issue
Block a user