Skip to content

Commit 4b032d0

Browse files
fix: improves error message when handler is not found (#469)
1 parent 49ad43e commit 4b032d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function extractFunctionEntries(
9191

9292
// Can't find the files. Watch will have an exception anyway. So throw one with error.
9393
throw new Error(
94-
'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'
94+
`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`
9595
);
9696
});
9797
}

0 commit comments

Comments
 (0)