Skip to content

Commit b0fe6a4

Browse files
committed
Improve error message
1 parent 35ac3f9 commit b0fe6a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/loader.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ export async function getUserFunction(
9393
try {
9494
const functionModulePath = getFunctionModulePath(codeLocation);
9595
if (functionModulePath === null) {
96-
console.error('Provided code is not a loadable module.');
96+
console.error(
97+
`Provided code location '${codeLocation}' is not a loadable module.` +
98+
'\nDid you specify the correct location for the module defining ' +
99+
'your function?'
100+
);
97101
return null;
98102
}
99103

0 commit comments

Comments
 (0)