mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 17:02:27 +01:00
Log all plugin errors as errors
This commit is contained in:
parent
ddda280df4
commit
c2ac126a50
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue