diff --git a/internal/errors/code_test.go b/internal/errors/code_test.go index cce36b42f2..c4b2cbc556 100644 --- a/internal/errors/code_test.go +++ b/internal/errors/code_test.go @@ -350,6 +350,11 @@ func TestCode_Both_String_Info(t *testing.T) { c: QueueIsFull, want: QueueIsFull, }, + { + name: "NotFound", + c: NotFound, + want: NotFound, + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { diff --git a/internal/errors/info.go b/internal/errors/info.go index 602e31b31c..d932748af2 100644 --- a/internal/errors/info.go +++ b/internal/errors/info.go @@ -295,4 +295,8 @@ var errorCodeInfo = map[Code]Info{ Message: "retry limit exceeded", Kind: State, }, + NotFound: { + Message: "not found", + Kind: State, + }, }