We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e71c4e commit 976eeceCopy full SHA for 976eece
src/plugin.ts
@@ -1,6 +1,6 @@
1
import type { StarbaseApp } from './handler'
2
3
-export class UnimplementedError extends Error {
+class UnimplementedError extends Error {
4
constructor(public method: string) {
5
super(`Method ${method} is not implemented`)
6
}
@@ -36,6 +36,10 @@ export class StarbasePluginRegistry {
36
await plugin.register(this.app)
37
console.log(`Plugin ${plugin.name} registered`)
38
} catch (e) {
39
+ if (e instanceof UnimplementedError) {
40
+ return
41
+ }
42
+
43
console.error(`Error registering plugin ${plugin.name}: ${e}`)
44
throw e
45
0 commit comments