Skip to content

Commit

Permalink
Fix line number in commit warning message referring to setup.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf committed Apr 27, 2020
1 parent 232703f commit b91c51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dependency_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def check_requirements(extras, github_annotate): # pylint disable: too-many-loc
# Format error message to be presented to user.
error_msg = ["The requirements/ files are missing dependencies specified in the 'setup.json' file.", '']
for dependency, fn_reqs in not_installed.items():
src = 'setup.json:' + ','.join(str(lineno) for lineno in setup_json_linenos[dependency])
src = 'setup.json:' + ','.join(str(lineno + 1) for lineno in setup_json_linenos[dependency])
error_msg.append(f'{src}: No match for dependency `{dependency}` in:')
for fn_req in sorted(fn_reqs):
error_msg.append(f' - {fn_req.relative_to(ROOT)}')
Expand Down

0 comments on commit b91c51d

Please sign in to comment.