bug 885615. Ensure that exn.stack exists. r=mossop

This commit is contained in:
Tim Abraldes 2013-08-28 10:27:32 -07:00
parent a61125e8a8
commit 3198126b2d

View File

@ -52,6 +52,9 @@ if (this.Components) {
LOG("Method", method, "succeeded");
} catch (ex) {
exn = ex;
if (!exn.stack) {
exn.stack = "No stack trace available!";
}
LOG("Error while calling agent method", exn, exn.stack);
}