Fix #30
This commit is contained in:
parent
ed02067795
commit
e320f77429
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ function readlineExt(options) {
|
|||
try {
|
||||
res.input = childProc.execFileSync(extHostPath, hostArgs, execOptions);
|
||||
} catch (e) { // non-zero exit code
|
||||
extMessage = e.stderr.trim();
|
||||
extMessage = e.stderr ? (e.stderr + '').trim() : '';
|
||||
res.error = new Error(DEFAULT_ERR_MSG + (extMessage ? '\n' + extMessage : ''));
|
||||
res.error.method = 'execFileSync';
|
||||
res.error.program = extHostPath;
|
||||
|
|
Loading…
Reference in a new issue