mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
make sure to console.error startup errors
This commit is contained in:
@@ -70,7 +70,11 @@ function quit(arg?: any) {
|
||||
if (typeof arg === 'string') {
|
||||
env.log(arg)
|
||||
} else {
|
||||
env.log('Startup error: ' + arg.toString());
|
||||
if (arg.stack) {
|
||||
console.error(arg.stack);
|
||||
} else {
|
||||
console.error('Startup error: ' + arg.toString());
|
||||
}
|
||||
}
|
||||
|
||||
process.exit();
|
||||
|
||||
Reference in New Issue
Block a user