Bug 490150: report what the exception was when command updating failed. r=gavin

This commit is contained in:
Magnus Melin 2009-04-26 13:38:22 +03:00
parent f9eb2f54d9
commit 625f2cd489

View File

@ -74,7 +74,8 @@ function goUpdateCommand(aCommand)
goSetCommandEnabled(aCommand, enabled);
}
catch (e) {
dump("An error occurred updating the " + aCommand + " command\n");
Components.utils.reportError("An error occurred updating the " +
aCommand + " command: " + e);
}
}
@ -87,7 +88,8 @@ function goDoCommand(aCommand)
controller.doCommand(aCommand);
}
catch (e) {
dump("An error occurred executing the " + aCommand + " command\n" + e + "\n");
Components.utils.reportError("An error occurred executing the " +
aCommand + " command: " + e);
}
}