add line number to the error output when parsing a tag's type expression (#1057)

This commit is contained in:
Max Geissler 2017-07-04 22:57:46 +02:00 committed by Jeff Williams
parent 3c325725bc
commit af5d169673

View File

@ -76,7 +76,7 @@ function parseType(tag, tagDef, meta) {
catch (e) {
jsdoc.util.logger.error(
'Unable to parse a tag\'s type expression%s with tag title "%s" and text "%s": %s',
meta.filename ? ( ' for source file ' + path.join(meta.path, meta.filename) ) : '',
meta.filename ? ( ' for source file ' + path.join(meta.path, meta.filename) + (meta.lineno ? (' in line ' + meta.lineno) : '') ) : '',
tag.originalTitle,
tag.text,
e.message