mirror of
https://github.com/coder/code-server.git
synced 2024-11-25 18:46:00 +03:00
Exit with 1 when VS Code CLI errors
Addresses part of #6367. The script bundled with VS Code still has the same problem but it would be better to fix that one upstream.
This commit is contained in:
parent
d49b3bf159
commit
fdb46d3fe5
@ -54,6 +54,7 @@ export const runCodeCli = async (args: DefaultedArgs): Promise<void> => {
|
||||
await spawnCli(await toCodeArgs(args))
|
||||
} catch (error: any) {
|
||||
logger.error("Got error from Code", error)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
process.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user