mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-10 13:47:05 +00:00
Improve error reporting on test failures a little
This commit is contained in:
parent
7e1466b47a
commit
9a434e502a
@ -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…
x
Reference in New Issue
Block a user