From 5cec5b0c9d1018bb2cc59e6b8c62692dcff17172 Mon Sep 17 00:00:00 2001 From: OFF0 Date: Fri, 16 Dec 2022 12:44:05 +0100 Subject: [PATCH] noxy: log more useful response error --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 4381ccd..7b423a1 100644 --- a/src/main.js +++ b/src/main.js @@ -210,7 +210,8 @@ const fetchNext = (href, id, relay) => { return fetchNext(href, id, relay); } }) - .catch(console.warn); + .catch(err => err.text && err.text()) + .then(errMsg => errMsg && console.warn(errMsg)); return previewId; };