mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1035296 - Part 2, Make protocol.js pass error messages for unknownError; r=past
This commit is contained in:
parent
6cc74f034f
commit
972295ac37
@ -2072,7 +2072,7 @@ Requisition.prototype.exec = function(options) {
|
||||
|
||||
data = (data != null && data.isTypedData) ? data : {
|
||||
isTypedData: true,
|
||||
data: data,
|
||||
data: data.replace(/^Protocol error: /, ''), // Temp for bug 1035296
|
||||
type: 'error'
|
||||
};
|
||||
output.complete(data, true);
|
||||
|
@ -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