Skip to content

Commit

Permalink
fix: improves error message when handler is not found (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-springer-sr committed Jun 3, 2023
1 parent 49ad43e commit 4b032d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
});
}
Expand Down

0 comments on commit 4b032d0

Please sign in to comment.