mshtml/tests: Improve tests exception handling.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-07-01 15:30:40 +02:00 committed by Alexandre Julliard
parent 9adb62cf8b
commit 2eb40fab19
1 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,12 @@ function guard(f) {
try {
f();
}catch(e) {
ok(false, "Got exception " + ("message" in e ? e.message : e));
var msg = "Got exception ";
if(e && typeof(e) == "object" && "message")
msg += e.msg;
else
msg += e;
ok(false, msg);
}
};
}