From c90f58b10c1fa360c503289fb67c2f54da0dbbe5 Mon Sep 17 00:00:00 2001 From: cgoodwin90 Date: Tue, 20 Aug 2024 11:08:28 +1000 Subject: [PATCH] Updates thrown error --- services/api/src/resources/notification/resolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {