diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-10 14:31:37 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-09-10 14:31:37 +0530 |
commit | c06a671dc4fe213c0e9f10a99d3c6d82396e91e1 (patch) | |
tree | e890393d0c5212b3b1bdcb2bdc55dc4a45bc702a /errors | |
parent | 794a9c07ffc7dc72993f5240796dfe643d73ed82 (diff) |
using better error messages for 409 Conflictv0.0.8
Diffstat (limited to 'errors')
-rw-r--r-- | errors/errors.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/errors/errors.go b/errors/errors.go index b5f4f63..9a5a215 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -55,11 +55,11 @@ var ( // 409 ErrNonUniqueGSTIN = errors.New("GSTIN Must Be Unique") - ErrNonUniquePhone = errors.New("Phone Number Must Be Unique") - ErrNonUniqueEmail = errors.New("Email Address Must Be Unique") - ErrNonUniqueUsername = errors.New("Username Must Be Unique") - ErrNonUniqueWebsite = errors.New("Website Must Be Unique") - ErrNonUniqueBrandName = errors.New("Brand Name Must Be Unique") + ErrNonUniquePhone = errors.New("Phone Number Is Already In Use") + ErrNonUniqueEmail = errors.New("Email Address Is Already In Use") + ErrNonUniqueUsername = errors.New("Username Is Already In Use") + ErrNonUniqueWebsite = errors.New("Website Is Already In Use") + ErrNonUniqueBrandName = errors.New("Brand Name Is Already In Use") ErrNonUniqueBrandItem = errors.New("Item With Same Name And Brand Already Exists") // 500 |