From fb82df23e5affc51dade0a25f8d1526c113ea59b Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Sun, 29 Nov 2020 08:03:52 +0100 Subject: [PATCH] Fix typo in system/role error def --- system/service/role_actions.gen.go | 6 +++--- system/service/role_actions.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/service/role_actions.gen.go b/system/service/role_actions.gen.go index 83af97639..b4a89b4db 100644 --- a/system/service/role_actions.gen.go +++ b/system/service/role_actions.gen.go @@ -644,12 +644,12 @@ func RoleErrGeneric(mm ...*roleActionProps) *errors.Error { return e } -// RoleErrNotFOund returns "system:role.notFOund" as *errors.Error +// RoleErrNotFound returns "system:role.notFound" as *errors.Error // // // This function is auto-generated. // -func RoleErrNotFOund(mm ...*roleActionProps) *errors.Error { +func RoleErrNotFound(mm ...*roleActionProps) *errors.Error { var p = &roleActionProps{} if len(mm) > 0 { p = mm[0] @@ -660,7 +660,7 @@ func RoleErrNotFOund(mm ...*roleActionProps) *errors.Error { p.Format("role not found", nil), - errors.Meta("type", "notFOund"), + errors.Meta("type", "notFound"), errors.Meta("resource", "system:role"), errors.Meta(rolePropsMetaKey{}, p), diff --git a/system/service/role_actions.yaml b/system/service/role_actions.yaml index 277f1984b..9bd7bb41e 100644 --- a/system/service/role_actions.yaml +++ b/system/service/role_actions.yaml @@ -76,7 +76,7 @@ actions: errors: - - error: notFOund + - error: notFound message: "role not found" severity: warning