fix: error "undefined reading error" while stopping plugins

Massimo Melina committed Mar 24, 2024 at 23:44 UTC 6184ab511080c43480346f9c4d2ca7167ed18d8f
1 file changed +1 -1
src/plugins.ts
+1 -1
@@ -431,7 +431,7 @@ function customApiCall(method: string, ...params: any[]) {
431 }
432
433 function getError(id: string) {
434 - return getPluginInfo(id).error
434 + return getPluginInfo(id)?.error as undefined | string
435 }
436
437 function setError(id: string, error: string) {