fix(api): Added error handling to create and update org http apis and sql update handlers, now checks for org name taken scenarios and returns correct http error code and message, fixes #2686
This commit is contained in:
+2
-1
@@ -7,7 +7,8 @@ import (
|
||||
|
||||
// Typed errors
|
||||
var (
|
||||
ErrOrgNotFound = errors.New("Organization not found")
|
||||
ErrOrgNotFound = errors.New("Organization not found")
|
||||
ErrOrgNameTaken = errors.New("Organization name is taken")
|
||||
)
|
||||
|
||||
type Org struct {
|
||||
|
||||
Reference in New Issue
Block a user