add plugin loading debug
This commit is contained in:
parent
d05637446f
commit
c6a8a6b542
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ function loadPlugin (name, config) {
|
|||
try {
|
||||
plugin = require('lamassu-' + name)
|
||||
} catch (err) {
|
||||
logger.debug(err.stack)
|
||||
if (err.code === 'MODULE_NOT_FOUND') {
|
||||
throw new Error(name + ' module is not installed. ' +
|
||||
'Try running \'npm install --save lamassu-' + name + '\' first')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue