Skip to content

Commit 2953893

Browse files
authored
👌 IMPROVE: Ask user to check if dev server is running (#23)
1 parent dfa5909 commit 2953893

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎packages/core/src/common/errors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ export class APIConnectionError extends APIError {
108108

109109
constructor({message, cause}: {message?: string; cause?: Error}) {
110110
super(undefined, undefined, message || 'Connection error.', undefined);
111+
console.warn(
112+
`\nPlease check if BaseAI dev server is running. If not, run 'npx baseai dev' in the root directory.\n`,
113+
);
111114
if (cause) (this as Error).cause = cause;
112115
}
113116
}

0 commit comments

Comments
 (0)