Append stdErr log to error message when a streamed console command fails. (#7868)

This commit is contained in:
Cory Rivera
2019-10-23 12:38:24 -07:00
committed by GitHub
parent 41f9f22e38
commit 06d67f5ad2
2 changed files with 13 additions and 4 deletions

View File

@@ -260,7 +260,7 @@ export class PerFolderServerInstance implements IServerInstance {
let onErrorBeforeStartup = (err: any) => reject(err);
let onExitBeforeStart = (err: any) => {
if (!this.isStarted) {
reject(localize('notebookStartProcessExitPremature', "Notebook process exited prematurely with error: {0}, StdErr Output: {1}", err, stdErrLog));
reject(localize('notebookStartProcessExitPremature', 'Notebook process exited prematurely with error code: {0}. StdErr Output: {1}', err, stdErrLog));
}
};
this.childProcess.on('error', onErrorBeforeStartup);