From a2aae7f805b463db140cfca72a40a70b66633b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 24 Oct 2018 13:12:19 -0400 Subject: [PATCH] shorter error message --- src/plugins/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/index.js b/src/plugins/index.js index 0bbe785049..faf2365992 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -44,7 +44,7 @@ module.require = function () { // if we can't find the module try in parent directory // since plugins.js moved into plugins folder if (err.code === 'MODULE_NOT_FOUND') { - winston.warn('[plugins/require] please update module.parent.require("' + arguments[0] + '") in your plugin!\n' + err.stack.split('\n').slice(0, 6).join('\n')); + winston.warn('[plugins/require] please update module.parent.require("' + arguments[0] + '") in your plugin!\n' + err.stack.split('\n')[5]); return defaultRequire.apply(module, [path.join('../', arguments[0])]); } throw err;