Chore: Differentiate the ErrOrgNotFound error messages (#64131)

* Better org not found error messages
This commit is contained in:
Sofia Papagiannaki authored and GitHub committed 2023-03-06 09:57:46 +02:00
1 parent 1aadafe7d8
commit fde96c91c1
6 files changed
+19 -14

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ func TestAdminAPIEndpoint(t *testing.T) {
respJSON, err := simplejson.NewJson(sc.resp.Body.Bytes())
require.NoError(t, err)
assert.Equal(t, "organization not found", respJSON.Get("message").MustString())
assert.Equal(t, org.ErrOrgNotFound.Error(), respJSON.Get("message").MustString())
})
})
})