From a8317b3aca3d8526fecdbce551b599a02840129b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Thu, 20 Oct 2022 02:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=B8=B8=E6=88=8F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5=E5=B0=B1=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E4=B8=AD=E6=96=AD=E7=9A=84=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 56828b44..6e334395 100644 --- a/script.js +++ b/script.js @@ -4321,7 +4321,8 @@ function editBoxChangeMonId(id) { if (!card) { //如果搜不到怪物就直接返回,不做任何操作 const errorMsg = "The game data has not been loaded successfully.\n游戏数据尚未加载成功。"; alert(errorMsg); - throw new Error(errorMsg); + console.error(errorMsg); + return; } if (card?.id === 0) { id = 0;