diff options
author | Ritu Sood <ritu.sood@intel.com> | 2020-09-25 16:36:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-25 16:36:24 +0000 |
commit | 8b5c4236639a46f39cbfe852590f34e64f58a85a (patch) | |
tree | a2130c27227dbeffb903888b777ece8afd8f8302 /src/dcm/pkg/module/userpermissions.go | |
parent | 6498e883dcbc005b32f86f8a57c96950c359d98e (diff) | |
parent | c585d2b091875dbc9575a960f4f42c1f14ec3366 (diff) |
Merge "Enhance error handling and HTTP codes in DCM"
Diffstat (limited to 'src/dcm/pkg/module/userpermissions.go')
-rw-r--r-- | src/dcm/pkg/module/userpermissions.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dcm/pkg/module/userpermissions.go b/src/dcm/pkg/module/userpermissions.go index 2cff712b..4c918f0f 100644 --- a/src/dcm/pkg/module/userpermissions.go +++ b/src/dcm/pkg/module/userpermissions.go @@ -124,7 +124,7 @@ func (v *UserPermissionClient) GetUserPerm(project, logicalCloud, userPermName s return up, nil } - return UserPermission{}, pkgerrors.New("Error getting User Permission") + return UserPermission{}, pkgerrors.New("User Permission does not exist") } // GetAll lists all user permissions @@ -184,7 +184,7 @@ func (v *UserPermissionClient) UpdateUserPerm(project, logicalCloud, userPermNam _, err := v.GetUserPerm(project, logicalCloud, userPermName) if err != nil { return UserPermission{}, pkgerrors.New( - "Update Error - User Permission doesn't exist") + "User Permission does not exist") } err = v.util.DBInsert(v.storeName, key, nil, v.tagMeta, c) if err != nil { |