always pass error from Common.handleError

This commit is contained in:
Joe Fleming 2015-11-04 14:44:47 -07:00
parent 33c6cf5980
commit e3ac7f6dc0

View file

@ -66,7 +66,7 @@ define(function (require) {
var filename = path.resolve(['./screenshot', now, testName, '.png'].join('_'));
return self.saveScreenshot(filename)
.then(function () {
.finally(function () {
throw new Error(reason);
});
};