From 7f2296b1fbfaa4669bdabcf9d055425b07987133 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 21 Jun 2021 04:52:29 -0400 Subject: [PATCH] Tweak a couple error messages for HTTP.BrowserOfflineException --- chrome/content/zotero/xpcom/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 2bbff8917f..4a248f931f 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -75,7 +75,7 @@ Zotero.HTTP = new function() { * @constructor */ this.BrowserOfflineException = function() { - this.message = "XMLHttpRequest could not complete because the browser is offline"; + this.message = `Request could not be completed because ${Zotero.appName} is offline`; this.stack = new Error().stack; }; this.BrowserOfflineException.prototype = Object.create(Error.prototype); @@ -259,7 +259,7 @@ Zotero.HTTP = new function() { } if (url.startsWith('http') && this.browserIsOffline()) { - Zotero.debug("HTTP " + method + " " + dispURL + " failed: Browser is offline"); + Zotero.debug(`HTTP ${method} ${dispURL} failed: ${Zotero.appName} is offline`); throw new this.BrowserOfflineException(); }