fix: console error "miss" downloading a plugin that was previously enabled
Massimo Melina committed
Oct 12, 2024 at 14:04 UTC
05a162d28a1f474c6b7627cb204e74f681d56b36
1 file changed
+1
src/github.ts
+1
@@ -102,6 +102,7 @@ export async function downloadPlugin(repo: Repo, { branch='', overwrite=false }=
102
.catch(e => { throw e.code !== 'ENOENT' ? e : new ApiError(HTTP_NOT_ACCEPTABLE, "missing main file") })
103
if (wasEnabled)
104
void startPlugin(folder) // don't wait, in case it fails to start
105
+ .catch(() => {}) // it will possibly fail (with 'miss') because the plugin has probably not been loaded yet.
106
return folder
107
}
108
}