Skip to content

Commit

Permalink
fix(plugin): gramma on Action not existing (#5213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesbarford authored Nov 29, 2024
1 parent 5ca97f5 commit 306d7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class Plugin {

public async cocAction(method: string, ...args: any[]): Promise<any> {
let fn = this.actions.get(method)
if (!fn) throw new Error(`Action "${method}" not exist`)
if (!fn) throw new Error(`Action "${method}" does not exist`)
return await Promise.resolve(fn.apply(null, args))
}

Expand Down

0 comments on commit 306d7b9

Please sign in to comment.