This commit is contained in:
anseki 2016-02-06 11:42:37 +09:00
parent ed02067795
commit e320f77429

View file

@ -266,7 +266,7 @@ function readlineExt(options) {
try { try {
res.input = childProc.execFileSync(extHostPath, hostArgs, execOptions); res.input = childProc.execFileSync(extHostPath, hostArgs, execOptions);
} catch (e) { // non-zero exit code } 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 = new Error(DEFAULT_ERR_MSG + (extMessage ? '\n' + extMessage : ''));
res.error.method = 'execFileSync'; res.error.method = 'execFileSync';
res.error.program = extHostPath; res.error.program = extHostPath;