summaryrefslogtreecommitdiff
path: root/packages/db/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2024-04-01 14:18:46 -0400
committerGravatar GitHub <noreply@github.com> 2024-04-01 14:18:46 -0400
commit17badaf55c79cec460c74f4da58bf188eedef7e3 (patch)
treebc94c00bfe75e456317264bc180ac17d6a8c3ac7 /packages/db/src
parentca2976491291e55a6901ba522362f171d31ce6a3 (diff)
downloadastro-17badaf55c79cec460c74f4da58bf188eedef7e3.tar.gz
astro-17badaf55c79cec460c74f4da58bf188eedef7e3.tar.zst
astro-17badaf55c79cec460c74f4da58bf188eedef7e3.zip
Give proper error when seed missing default export (#10635)
Diffstat (limited to '')
-rw-r--r--packages/db/src/core/cli/commands/execute/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/db/src/core/cli/commands/execute/index.ts b/packages/db/src/core/cli/commands/execute/index.ts
index eb51467d9..44a2c44fd 100644
--- a/packages/db/src/core/cli/commands/execute/index.ts
+++ b/packages/db/src/core/cli/commands/execute/index.ts
@@ -58,7 +58,7 @@ export async function cmd({
const mod = await importBundledFile({ code, root: astroConfig.root });
if (typeof mod.default !== 'function') {
- console.error(EXEC_DEFAULT_EXPORT_ERROR);
+ console.error(EXEC_DEFAULT_EXPORT_ERROR(filePath));
process.exit(1);
}
try {