Skip to content

Commit 3ad7229

Browse files
authored
Merge pull request #217 from TiraO/patch-1
Make stdout available on error
2 parents f523170 + 206ca28 commit 3ad7229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ export class PythonShell extends EventEmitter{
284284
return pyshell.on('message', function (message) {
285285
output.push(message);
286286
}).end(function (err) {
287-
if (err) return callback(err);
288-
return callback(null, output.length ? output : null);
287+
return callback(err? err : null, output.length ? output : null);
289288
});
290289
};
291290

0 commit comments

Comments
 (0)