mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
Improve error message when load a hook
This commit is contained in:
parent
bb2e488cf9
commit
c30edafb60
@ -80,7 +80,7 @@ module.exports = function (strapi) {
|
||||
hooks[id].load(function (err) {
|
||||
clearTimeout(hookTimeout);
|
||||
if (err) {
|
||||
strapi.log.error('`' + id + '` failed to load!');
|
||||
strapi.log.error('The hook `' + id + '` failed to load!');
|
||||
strapi.emit('hook:' + id + ':error');
|
||||
return cb(err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user