diff --git a/services/api/src/resources/notification/resolvers.ts b/services/api/src/resources/notification/resolvers.ts index 41dadba145..72ff1e4bf4 100644 --- a/services/api/src/resources/notification/resolvers.ts +++ b/services/api/src/resources/notification/resolvers.ts @@ -707,7 +707,7 @@ export const getAllNotifications: ResolverFn = async ( rows = await query(sqlClientPool, Sql.selectNotificationByNameAndType(args.name, args.type)); if (rows.length === 0) { - throw new Error(`No notification found for ${args.name} & ${args.type}`); + throw new Error(`Unauthorized: You don't have permission to "view" on "notification"`); } if (rows.length > 0) {