Skip to content

Commit

Permalink
enforceExistence: fix error location property
Browse files Browse the repository at this point in the history
Closes gh-140
  • Loading branch information
MunGell authored and Alexej Yaroshevich committed Sep 6, 2015
1 parent 379e9ff commit 1a08508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/validate-jsdoc/enforce-existence.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function enforceExistence(node, err) {
// now clear to check for documentation
if (node.jsdoc) {
if (!node.jsdoc.valid) {
err('Invalid jsdoc-block definition', node.jsdoc.loc);
err('Invalid jsdoc-block definition', node.jsdoc.loc.start);
}
return;
}
Expand Down

0 comments on commit 1a08508

Please sign in to comment.