Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Loading