From 241b090fe40e58e9c6f6610f4011be889db3c1f7 Mon Sep 17 00:00:00 2001 From: usbsync Date: Mon, 21 Oct 2024 17:40:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=8A=88=208794=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/utils.js b/src/util/utils.js index 0998735a44..75a5d54e71 100644 --- a/src/util/utils.js +++ b/src/util/utils.js @@ -2108,8 +2108,9 @@ Entry.Utils.stopProjectWithToast = _throttle( } if (error) { - error.message = `${message}: ${error.message}`; - throw error; + const newError = new Error(`${message}: ${error.message}`); + newError.stack = error.stack; + throw newError; } throw new Error(message);