Improve error message when load a hook

This commit is contained in:
loicsaintroch 2015-11-02 15:56:56 +01:00
parent bb2e488cf9
commit c30edafb60

View File

@ -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);
}