diff --git a/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html b/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html index 6c40ca0dc1bf..b6d26068f129 100644 --- a/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html +++ b/dom/tests/mochitest/localstorage/test_localStorageEnablePref.html @@ -16,6 +16,9 @@ function checkException(func, exc) catch (ex) { exceptionThrew = true; is(ex.name, exc, "Expected "+exc+" exception"); + if (ex.name != exc) { + ok(true, "The exception which was thrown is: " + ex); + } } ok(exceptionThrew, "Exception "+exc+" threw"); }