diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-12 10:45:13 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-12 10:45:13 +0200 |
commit | 2870155c0b3b91efc2a4d3fe2e1edd5a1be9ae8a (patch) | |
tree | e4009a50bbbb98c83e58a6d38591e650c2d34473 | |
parent | 9ba1075f4866131f790388ebabc1b8636926dd7f (diff) | |
download | gitbook-2870155c0b3b91efc2a4d3fe2e1edd5a1be9ae8a.zip gitbook-2870155c0b3b91efc2a4d3fe2e1edd5a1be9ae8a.tar.gz gitbook-2870155c0b3b91efc2a4d3fe2e1edd5a1be9ae8a.tar.bz2 |
Fix js error
-rw-r--r-- | lib/plugin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugin.js b/lib/plugin.js index e3ac7bc..3191c63 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -133,7 +133,7 @@ Plugin.prototype.isValid = function() { // Valid hooks _.each(this.infos.hooks, function(hook, hookName) { if (_.contains(Plugin.HOOKS, hookName)) return; - that.book.log.warn.ln('Hook ''+hookName+' 'used by plugin ''+that.packageInfos.name+'' has been removed or is deprecated'); + that.book.log.warn.ln('Hook "'+hookName+'"" used by plugin "'+that.packageInfos.name+'" has been removed or is deprecated'); }); return isValid; @@ -155,7 +155,7 @@ Plugin.prototype.callHook = function(name, data) { if (!hookFunc) return Q(data); this.book.log.debug.ln('call hook', name); - if (!_.contains(Plugin.HOOKS, name)) this.book.log.warn.ln('hook ''+name+'' used by plugin ''+this.name+'' is deprecated, and will be removed in the coming versions'); + if (!_.contains(Plugin.HOOKS, name)) this.book.log.warn.ln('hook "'+name+'" used by plugin "'+this.name+'" is deprecated, and will be removed in the coming versions'); return Q() .then(function() { |