| Index: lib/downloader.js |
| =================================================================== |
| --- a/lib/downloader.js |
| +++ b/lib/downloader.js |
| @@ -213,21 +213,17 @@ Downloader.prototype = |
| let errorCallback = function errorCallback(error) |
| { |
| let channelStatus = -1; |
| try |
| { |
| channelStatus = request.channel.status; |
| } catch (e) {} |
| - let responseStatus = -1; |
| - try |
| - { |
| - responseStatus = request.status; |
| - } catch (e) {} |
| + let responseStatus = request.status; |
| Cu.reportError("Adblock Plus: Downloading URL " + downloadable.url + " failed (" + error + ")\n" + |
| "Download address: " + downloadURL + "\n" + |
| "Channel status: " + channelStatus + "\n" + |
| "Server response: " + responseStatus); |
| if (this.onDownloadError) |
| { |