Skip to content

Commit

Permalink
Bug 1035296 - Make protocol.js pass error messages for unknownError. …
Browse files Browse the repository at this point in the history
…r=past
  • Loading branch information
joewalker committed Jul 11, 2014
1 parent 8c61f54 commit cef2291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toolkit/devtools/server/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,9 @@ let Front = Class({

let deferred = this._requests.shift();
if (packet.error) {
deferred.reject(packet.error);
let message = (packet.error == "unknownError" && packet.message) ?
packet.message : packet.error;
deferred.reject(message);
} else {
deferred.resolve(packet);
}
Expand Down

0 comments on commit cef2291

Please sign in to comment.