mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Show actual error message when loading plugin fails (#3083)
This commit is contained in:
parent
427c59cd5f
commit
28495d93b4
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ function requirePlugins() {
|
|||
} catch (err) {
|
||||
if (err.code === 'MODULE_NOT_FOUND') {
|
||||
//eslint-disable-next-line no-console
|
||||
console.warn(`Plugin "${basename(path_)}" not found: ${path_}`);
|
||||
console.warn(`Plugin error while loading "${basename(path_)}" (${path_}): ${err.message}`);
|
||||
} else {
|
||||
notify('Plugin error!', `Plugin "${basename(path_)}" failed to load (${err.message})`, {error: err});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue