Log all plugin errors as errors

This commit is contained in:
Asher 2020-10-07 12:25:23 -05:00
parent ddda280df4
commit c2ac126a50
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 1 additions and 5 deletions

View File

@ -41,11 +41,7 @@ const loadPlugin = async (pluginPath: string, httpServer: HttpServer, args: Args
field("version", require(path.join(pluginPath, "package.json")).version || "n/a"),
)
} catch (error) {
if (error.code !== "MODULE_NOT_FOUND") {
logger.warn(error.message)
} else {
logger.error(error.message)
}
logger.error(error.message)
}
}