From 4b032d057b10e859e508e3b26be1c1f4d486442d Mon Sep 17 00:00:00 2001 From: alex-springer-sr <100693478+alex-springer-sr@users.noreply.github.com> Date: Sat, 3 Jun 2023 10:39:00 +0200 Subject: [PATCH] fix: improves error message when handler is not found (#469) --- src/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper.ts b/src/helper.ts index 9ad970b0..21315220 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -91,7 +91,7 @@ export function extractFunctionEntries( // Can't find the files. Watch will have an exception anyway. So throw one with error. throw new Error( - 'Compilation failed. Please ensure you have an index file with ext .ts or .js, or have a path listed as main key in package.json' + `Compilation failed for function alias ${functionAlias}. Please ensure you have an index file with ext .ts or .js, or have a path listed as main key in package.json` ); }); }