From 809b9bc2a3f6e55df9f582af8fddaf496962c98f Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Wed, 2 Nov 2022 07:47:23 +0200 Subject: [PATCH] add error file --- src/utils/ErrorHandling.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/utils/ErrorHandling.ts diff --git a/src/utils/ErrorHandling.ts b/src/utils/ErrorHandling.ts new file mode 100644 index 00000000..c8af85c9 --- /dev/null +++ b/src/utils/ErrorHandling.ts @@ -0,0 +1,3 @@ +export function getErrorMessage(resource: string, message: string): string { + return `${message} has failed for the following component: ${resource}` +}