mirror of
https://github.com/strapi/strapi.git
synced 2025-07-26 02:20:32 +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) {
|
hooks[id].load(function (err) {
|
||||||
clearTimeout(hookTimeout);
|
clearTimeout(hookTimeout);
|
||||||
if (err) {
|
if (err) {
|
||||||
strapi.log.error('`' + id + '` failed to load!');
|
strapi.log.error('The hook `' + id + '` failed to load!');
|
||||||
strapi.emit('hook:' + id + ':error');
|
strapi.emit('hook:' + id + ':error');
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user