From 93752e671e07abc7b1ba4b18a30960481823895e Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 30 Nov 2020 02:29:27 +0100 Subject: [PATCH] Fix plugin errors show incorrect error stack Fix master server showing the stack of the PluginError instance on startup instead of the original error that the plugin threw. --- packages/master/master.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/master/master.js b/packages/master/master.js index caa02c01..59523acb 100755 --- a/packages/master/master.js +++ b/packages/master/master.js @@ -2004,9 +2004,8 @@ ${err.stack}` ${err.pluginName} plugin threw an unexpected error during startup, please report it to the plugin author. ------------------------------------------------------ -${err.stack}` +${err.original.stack}` ); - err = err.original; } else { logger.fatal(` +---------------------------------------------------------------+