From 3fc0b1643454fe038490fdcd77d1e55e7caabd02 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Fri, 28 Mar 2025 12:06:30 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/previewPageList/PreviewPageList.vue | 2 +- modules/previewPageList/ext.isekai.previewPageList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/previewPageList/PreviewPageList.vue b/modules/previewPageList/PreviewPageList.vue index 3cd4fc3..1c33b96 100644 --- a/modules/previewPageList/PreviewPageList.vue +++ b/modules/previewPageList/PreviewPageList.vue @@ -96,7 +96,7 @@ module.exports = { }); }).catch((err) => { contentLoading.value = false; - errorMessage.value = mw.msg('isekai-preview-page-list-load-error', selectedPageInfo.value.title); + errorMessage.value = mw.msg('isekai-preview-page-list-load-error', err.message); console.error(err); }); } diff --git a/modules/previewPageList/ext.isekai.previewPageList.js b/modules/previewPageList/ext.isekai.previewPageList.js index 5925350..ddc06e7 100644 --- a/modules/previewPageList/ext.isekai.previewPageList.js +++ b/modules/previewPageList/ext.isekai.previewPageList.js @@ -59,7 +59,7 @@ class BasePageListLoader { }).catch((error) => { if (error instanceof TypeError) { error = new Error(mw.message('isekai-preview-page-list-load-error-parse').parse()); - } else if (error instanceof FetchError) + } reject(error); }); });