Skip to content

Commit

Permalink
Capture message with inline errors as well as multi-line errors
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Aug 25, 2014
1 parent 0594c08 commit 8eb56b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function (command) {
// of the stdout create an new error with the 7-Zip error message as the
// error's message. Otherwise progress with stdout message.
var err;
var reg = new RegExp('Error:' + os.EOL + '(.*)', 'g');
var reg = new RegExp('Error:' + os.EOL + '?(.*)', 'g');
var run = spawn(cmd, args, { stdio: 'pipe' });
run.stdout.on('data', function (data) {
var res = reg.exec(data.toString());
Expand Down

0 comments on commit 8eb56b4

Please sign in to comment.