mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
derprelic
This commit is contained in:
@@ -45,7 +45,7 @@ module.require = function (p) {
|
|||||||
// if we can't find the module try in parent directory
|
// if we can't find the module try in parent directory
|
||||||
// since plugins.js moved into plugins folder
|
// since plugins.js moved into plugins folder
|
||||||
if (err.code === 'MODULE_NOT_FOUND') {
|
if (err.code === 'MODULE_NOT_FOUND') {
|
||||||
winston.warn('[plugins/require] ' + err.message + ', please update your plugin!\n' + err.stack.split('\n').slice(4, 7).join('\n'));
|
winston.warn('[plugins/require] ' + err.message + ', please update your plugin!\n' + err.stack.split('\n').slice(5, 7).join('\n'));
|
||||||
if (path.isAbsolute(p)) {
|
if (path.isAbsolute(p)) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user