diff --git a/uni_modules/uts-tests/utssdk/tests.uts b/uni_modules/uts-tests/utssdk/tests.uts index 784342659a2d6e0f9c099fb21a164096b48d6f17..953d7217774a4b5c108e8ee75b36265409580737 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++ }