Skip to content

Commit c5c1b71

Browse files
authored
fix: use console.error before process.exit (#68)
1 parent ef98093 commit c5c1b71

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/blink/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blink",
3-
"version": "1.1.27",
3+
"version": "1.1.28",
44
"description": "Blink is a tool for building and deploying AI agents.",
55
"type": "module",
66
"bin": {

packages/blink/src/react/use-devhook.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,13 @@ export default function useDevhook(options: UseDevhookOptions) {
6666
// Ignore errors reading lock info
6767
}
6868

69-
options.logger.error(
70-
"system",
69+
// don't use logger since it's not guaranteed to print before exiting
70+
console.error(
7171
chalk.red(
7272
`\nError: Another ${chalk.bold("blink dev")} process is already running in this directory${pidMessage}.`
7373
)
7474
);
75-
options.logger.error(
76-
"system",
75+
console.error(
7776
chalk.red(`Please stop the other process and try again.\n`)
7877
);
7978
process.exit(1);

0 commit comments

Comments
 (0)