Fixed a bug with logging missing documentation.

This commit is contained in:
Scott Erickson 2014-06-19 16:15:38 -04:00
parent 51923459e0
commit 20589db6be

View file

@ -178,7 +178,7 @@ module.exports = class SpellView extends View
doc = _.find (e.allDocs['__' + prop] ? []), (doc) -> doc = _.find (e.allDocs['__' + prop] ? []), (doc) ->
return true if doc.owner is owner return true if doc.owner is owner
return (owner is 'this' or owner is 'more') and (not doc.owner? or doc.owner is 'this') return (owner is 'this' or owner is 'more') and (not doc.owner? or doc.owner is 'this')
console.log 'could not find doc for', prop, 'from', e.allDocs['__' + prop], 'for', owner, 'of', propGroups unless doc console.log 'could not find doc for', prop, 'from', e.allDocs['__' + prop], 'for', owner, 'of', e.propGroups unless doc
doc ?= prop doc ?= prop
if doc.snippets? if doc.snippets?
entry = entry =