Skip to content

Commit 417cae2

Browse files
committed
fix: error variable type
1 parent dcfae0f commit 417cae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async function translateText(
115115
console.log(`当前中文字符:${key}为undefined, 重新翻译中...`);
116116
await new Promise((resolve) => setTimeout(resolve, timeout));
117117
}
118-
} catch (error) {
118+
} catch (error: any) {
119119
if (error.response && error.response.data) {
120120
console.log(error.response.data);
121121
} else {

0 commit comments

Comments
 (0)