Skip to content

Commit 8e1fe57

Browse files
committed
fix: 修正错误提示
1 parent 35f3253 commit 8e1fe57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/tool/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Tool {
7070
this.toolMap.delete(name)
7171
return true
7272
}
73-
throw new Error('禁用失败,不存在名为 ${tool} 的工具')
73+
throw new Error(`禁用失败,不存在名为 ${tool} 的工具`)
7474
}
7575

7676
@action
@@ -81,7 +81,7 @@ export class Tool {
8181
this.disabledToolMap.delete(name)
8282
return true
8383
}
84-
throw new Error('不存在名为 ${tool} 的工具')
84+
throw new Error(`不存在名为 ${tool} 的工具`)
8585
}
8686

8787
getTools() {

0 commit comments

Comments
 (0)