Improve error reporting on test failures a little
This commit is contained in:
parent
0ca0e60863
commit
20685c9941
|
@ -67,7 +67,7 @@ function assertIsAuthError(error, code, type) {
|
||||||
|
|
||||||
function failOnError(error) {
|
function failOnError(error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
throw new Error(`Error ${error} was not expected`);
|
throw new Error(`Unexpected error in test: ${error}\n${error.stack}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue