Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 6841c6c

Browse files
authored
Add messaging around source_file (#16)
1 parent 90a9c6b commit 6841c6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/functions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ export const createFunctions = async (options: Options, manifest: any) => {
3838
throw new Error(`Could not find file: ${fnFilePath}`);
3939
}
4040
} catch (e) {
41+
if (e instanceof Deno.errors.NotFound) {
42+
throw new Error(
43+
`Could not find file: ${fnFilePath}. Make sure your function's "source_file" is relative to your project root.`,
44+
);
45+
}
4146
throw new Error(e);
4247
}
4348

0 commit comments

Comments
 (0)