mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061673 - Improve error reporting of unrecognized packets. r=jryans
This commit is contained in:
parent
07900bb6b2
commit
fc88b247b6
@ -1107,9 +1107,12 @@ let Front = Class({
|
||||
if (packet.error) {
|
||||
// "Protocol error" is here to avoid TBPL heuristics. See also
|
||||
// https://mxr.mozilla.org/webtools-central/source/tbpl/php/inc/GeneralErrorFilter.php
|
||||
let message = (packet.error == "unknownError" && packet.message) ?
|
||||
"Protocol error: " + packet.message :
|
||||
packet.error;
|
||||
let message;
|
||||
if (packet.error && packet.message) {
|
||||
message = "Protocol error (" + packet.error + "): " + packet.message;
|
||||
} else {
|
||||
message = packet.error;
|
||||
}
|
||||
deferred.reject(message);
|
||||
} else {
|
||||
deferred.resolve(packet);
|
||||
|
Loading…
Reference in New Issue
Block a user