From 99e041af9b845a48ed322cdd4303d43e37e8bed0 Mon Sep 17 00:00:00 2001 From: fxy060608 <153647646@qq.com> Date: Mon, 2 Sep 2024 14:05:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20catch=20=E9=87=8C?= =?UTF-8?q?=E8=BE=B9=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=BC=BA=E8=BD=AC=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/tests.uts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/tests.uts b/uni_modules/uts-tests/utssdk/tests.uts index 7843426..953d721 100644 --- a/uni_modules/uts-tests/utssdk/tests.uts +++ b/uni_modules/uts-tests/utssdk/tests.uts @@ -24,7 +24,7 @@ export function test(name: string, fn: () => void) { result.passed.push(name) // console.log('push....',result.passed.length) } catch (e) { - result.failed.push(`${name}:\n${(e as Error).message}`) + result.failed.push(`${name}:\n${e.message}`) } result.total++ } -- GitLab