diff --git a/bin/hux b/bin/hux index 8c5c106..c5a1798 100755 --- a/bin/hux +++ b/bin/hux @@ -64,4 +64,4 @@ fn(opts) .catch(function(err) { console.error('The tests now halt. You might have unfinished tasks.\n'.red); throw err; - }); + }).done(); diff --git a/source/replay/replay.js b/source/replay/replay.js index 2cdc095..f316707 100644 --- a/source/replay/replay.js +++ b/source/replay/replay.js @@ -99,10 +99,8 @@ function replay(compare, driver, task, actions, browserName, HuxleyfileContainer console.log((err.message + ' ' + err.diffPath + '\n').red); } else if (err.message.indexOf('Images not the same dimension') > -1) { console.log((err.message.red)); - } else { - // unrecognized. Throw again to have the stack trace - throw err; } + throw err; }); }