mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 1035296 - Make protocol.js pass error messages for unknownError (part 2); r=past
This commit is contained in:
parent
c219b8fd96
commit
3e6505c039
@ -2070,6 +2070,10 @@ Requisition.prototype.exec = function(options) {
|
||||
}
|
||||
}
|
||||
|
||||
if (data != null && typeof data === 'string') {
|
||||
data = data.replace(/^Protocol error: /, ''); // Temp fix for bug 1035296
|
||||
}
|
||||
|
||||
data = (data != null && data.isTypedData) ? data : {
|
||||
isTypedData: true,
|
||||
data: data,
|
||||
|
@ -1112,7 +1112,7 @@ let Front = Class({
|
||||
let message = (packet.error == "unknownError" && packet.message) ?
|
||||
"Protocol error: " + packet.message :
|
||||
packet.error;
|
||||
deferred.reject(packet.error);
|
||||
deferred.reject(message);
|
||||
} else {
|
||||
deferred.resolve(packet);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user