Skip to content

Commit c246578

Browse files
committed
Made the CLI error more helpful if you’re not running your Next.js app
1 parent d395b95 commit c246578

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/happy-hounds-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/cli": patch
3+
---
4+
5+
Made the CLI error more helpful if you’re not running your Next.js app

packages/cli/src/commands/dev.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export async function devCommand(path: string, anyOptions: any) {
8484
},
8585
});
8686
} catch (err) {
87-
logger.error(`❌ [trigger.dev] No server found on port ${options.port}.`);
87+
logger.error(
88+
`❌ [trigger.dev] No server found on port ${options.port}. Make sure your Next.js app is running and try again.`
89+
);
8890
telemetryClient.dev.failed("no_server_found", options);
8991
return;
9092
}

0 commit comments

Comments
 (0)