From d333b64c68ba8cffba65496ee82e47fec44b6487 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 8 Jul 2026 13:11:07 -0500 Subject: [PATCH] don't print a confusing error on auto-open failure --- cli.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cli.ts b/cli.ts index 8b16fff..44f6282 100644 --- a/cli.ts +++ b/cli.ts @@ -254,9 +254,8 @@ if (opts.dev) { const url = `http://localhost:${apiPort}` const { cmd, args } = urlOpenCommand(url) const opener = spawn(cmd, args, { detached: true, stdio: 'ignore' }) - opener.on('error', (err) => { - console.error(`Could not open URL with ${cmd}: ${err.message}`) - console.error(`Open ${url} to see the diff`) - }) + // The URL is already printed on server startup, so a failed opener (e.g. no + // xdg-open on illumos) needs no message — swallow the error and carry on. + opener.on('error', () => {}) opener.unref() }