From 6b2c3f248824d7a8c17755fdb67ed6724cf058bf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 14 Oct 2019 01:46:32 -0400 Subject: [PATCH] Friendlier error message for HTTP timeout, in case it's exposed This should overridden in checkError() with a localized string, but for now use a nicer default message. --- chrome/content/zotero/xpcom/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index d92b6b1d84..2ad8befd69 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -87,7 +87,7 @@ Zotero.HTTP = new function() { this.CancelledException.prototype = Object.create(Error.prototype); this.TimeoutException = function(ms) { - this.message = "XMLHttpRequest has timed out" + (ms ? ` after ${ms} ms` : ""); + this.message = "Request timed out" + (ms ? ` after ${ms} ms` : ""); this.stack = new Error().stack; }; this.TimeoutException.prototype = Object.create(Error.prototype);