Skip to content

Commit 96bff8d

Browse files
author
Amoki
committed
update child.on('error')
1 parent 926a57e commit 96bff8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helpers/hydrater.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ module.exports = function(hydraterFunction, childs, opbeatConfig) {
7575
};
7676
cleaner.called = false;
7777

78-
child.process.on('error', function(exitCode) {
79-
cleaner(new HydrationError("Wild error appeared while spawning child. Exit code:" + exitCode));
78+
child.process.on('error', function(error) {
79+
cleaner(new HydrationError("Wild error appeared while spawning child. error:" + error));
8080
});
8181

8282
child.process.stderr.on('readable', function() {

0 commit comments

Comments
 (0)