Skip to content

Commit

Permalink
changes to new user auth checking error throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
ARADDCC002 committed Nov 25, 2024
1 parent 14a1020 commit 549b3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export async function checkCollaboratorAuthorisation(
try {
await authentication.getUserInformation(collaborator)
} catch (err) {
if (err instanceof Error && err.name === 'Registry Error') {
if (err instanceof Error && err.name === 'Not Found') {
throw NotFound(`Unable to find user ${collaborator}`, { err })
} else {
throw err
Expand Down

0 comments on commit 549b3f8

Please sign in to comment.