未验证 提交 c2ac126a 编写于 作者: A Asher

Log all plugin errors as errors

上级 ddda280d
......@@ -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)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册