diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 22:29:46 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-03 22:29:46 +0530 |
commit | 46083ff15e16b0b49132af9466bcab7c2ae71322 (patch) | |
tree | bc29d36293c459342c90d6f89b19c8be666ed327 /errors/status.go | |
parent | 620fb2f89b5acd70af4ed075b4797f81a3f1d109 (diff) |
validating phone number and websitev0.0.4
Diffstat (limited to 'errors/status.go')
-rw-r--r-- | errors/status.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/errors/status.go b/errors/status.go index 1fa33d1..7a23ddf 100644 --- a/errors/status.go +++ b/errors/status.go @@ -33,6 +33,9 @@ func StatusCodeFromErr(err error) int { errors.Is (err, ErrInvalidID) || errors.Is (err, ErrEmptyContactName) || errors.Is(err, ErrInvalidGSTIN) || + errors.Is(err, ErrInvalidEmail) || + errors.Is(err, ErrInvalidPhone) || + errors.Is(err, ErrInvalidWebsite) || errors.Is(err, ErrEmptyBrandName) || errors.Is(err, ErrInvalidUnitPrice) || errors.Is(err, ErrPasswordTooShort) || |