diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-09 10:20:31 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-09 10:20:31 +0530 |
commit | 8f2180401fd05ba63633d9559dc156f5ca1573ba (patch) | |
tree | f3d2f59b04d5940bc5028904d6ce9d551aace86a /errors/status.go | |
parent | cba9f19ba50c60576a5961e89c24caefca52d740 (diff) |
logging in with either username or emailv0.0.6
Diffstat (limited to 'errors/status.go')
-rw-r--r-- | errors/status.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/errors/status.go b/errors/status.go index 7a23ddf..c7fc2a4 100644 --- a/errors/status.go +++ b/errors/status.go @@ -40,6 +40,7 @@ func StatusCodeFromErr(err error) int { errors.Is(err, ErrInvalidUnitPrice) || errors.Is(err, ErrPasswordTooShort) || errors.Is(err, ErrPasswordTooLong) || + errors.Is(err, ErrInvalidLoginMethod) || errors.Is(err, ErrInvalidGSTPercentage) { return http.StatusBadRequest } |