plugins: Fix plugin name in error messages

This commit is contained in:
Richard Hansen 2020-11-13 13:29:09 -05:00 committed by John McLear
parent 6c07229d38
commit d624aa936e
3 changed files with 8 additions and 8 deletions

View file

@ -51,9 +51,9 @@ function extractHooks(parts, hook_set_name, normalizer) {
const disabledReason = (disabledHookReasons[hook_set_name] || {})[hook_name];
if (disabledReason) {
console.error(`Hook ${hook_set_name}/${hook_name} is disabled. Reason: ${disabledReason}`);
console.error(`The hook function ${hook_fn_name} from plugin ${part.name} ` +
console.error(`The hook function ${hook_fn_name} from plugin ${part.plugin} ` +
'will never be called, which may cause the plugin to fail');
console.error(`Please update the ${part.name} plugin to not use the ${hook_name} hook`);
console.error(`Please update the ${part.plugin} plugin to not use the ${hook_name} hook`);
return;
}