always pass error from Common.handleError
This commit is contained in:
parent
33c6cf5980
commit
e3ac7f6dc0
|
@ -66,7 +66,7 @@ define(function (require) {
|
||||||
var filename = path.resolve(['./screenshot', now, testName, '.png'].join('_'));
|
var filename = path.resolve(['./screenshot', now, testName, '.png'].join('_'));
|
||||||
|
|
||||||
return self.saveScreenshot(filename)
|
return self.saveScreenshot(filename)
|
||||||
.then(function () {
|
.finally(function () {
|
||||||
throw new Error(reason);
|
throw new Error(reason);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue