Skip to content

Commit

Permalink
updated lock error message (iterative#4325)
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh8398 committed Oct 15, 2020
1 parent b8fa3df commit d64edc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dvc/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

FAILED_TO_LOCK_MESSAGE = (
"Unable to acquire lock. Most likely another DVC process is running or "
"was terminated abruptly. Check the page {}."
"was terminated abruptly. Check the page {} for other possible reasons "
"and to learn how to resolve this."
).format(
format_link("https://dvc.org/doc/user-guide/troubleshooting#lock-issue")
)
Expand Down
3 changes: 2 additions & 1 deletion tests/func/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def test_cli(tmp_dir, dvc, mocker, caplog):
expected_error_msg = (
"Unable to acquire lock. Most likely another DVC process is "
"running or was terminated abruptly. Check the page "
"<https://dvc.org/doc/user-guide/troubleshooting#lock-issue>."
"<https://dvc.org/doc/user-guide/troubleshooting#lock-issue> "
"for other possible reasons and to learn how to resolve this."
)
with Lock(tmp_dir / dvc.tmp_dir / "lock"):
assert main(["add", "foo"]) == 1
Expand Down

0 comments on commit d64edc0

Please sign in to comment.