stderr data may emit one complete error message by several chunks, like this:
- '\n'
- 'ERROR:\n'
- 'some error message.\n\n'
So error.js can not extract both level and message from these separated chunks correctly. In fact the message will missing on error event emitting. This makes me hard to determine whether it's an incorrect password error in my scenario.
IMO the matching should be done here: onEndFactory, with full stderr chunks join together.
stderr data may emit one complete error message by several chunks, like this:
So error.js can not extract both
levelandmessagefrom these separated chunks correctly. In fact themessagewill missing onerrorevent emitting. This makes me hard to determine whether it's an incorrect password error in my scenario.IMO the matching should be done here: onEndFactory, with full stderr chunks join together.