Bug 1458731 - protocol.js include more descriptive errors. r=ochameau
MozReview-Commit-ID: 2Qw990ON5d9
--- a/devtools/shared/protocol.js
+++ b/devtools/shared/protocol.js
@@ -997,17 +997,17 @@ Actor.prototype = extend(Pool.prototype,
*/
form: function(hint) {
return { actor: this.actorID };
},
writeError: function(error) {
console.error(error);
if (error.stack) {
- dump(error.stack);
+ dump(`Error in ${this.actorID} ${error.message}\n${error.stack}\n`);
}
this.conn.send({
from: this.actorID,
error: error.error || "unknownError",
message: error.message
});
},