move transfer already in progress message to warning

This makes it be displayed in the error-messages field with
--json-error-messages. And with --quiet, it will let it be displayed,
which makes sense because it's telling the user why what they requested
to do has failed to happen.
This commit is contained in:
Joey Hess 2021-10-27 14:46:21 -04:00
parent 1d0c07a3af
commit 55bfa414b3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 15 additions and 1 deletions

View file

@ -132,7 +132,7 @@ runTransfer' ignorelock t afile stalldetection retrydecider transferaction =
(lck, inprogress) <- prep tfile createtfile mode (lck, inprogress) <- prep tfile createtfile mode
if inprogress && not ignorelock if inprogress && not ignorelock
then do then do
showNote "transfer already in progress, or unable to take transfer lock" warning "transfer already in progress, or unable to take transfer lock"
return observeFailure return observeFailure
else do else do
v <- retry 0 info metervar $ v <- retry 0 info metervar $

View file

@ -0,0 +1,14 @@
[[!comment format=mdwn
username="joey"
subject="""comment 4"""
date="2021-10-27T18:40:48Z"
content="""
Aha, that makes sense! addurl constructs a url-based Key to use while
downloading, and the key transfer machinery prevents redundant downloads
of the same Key at the same time.
Arguably, the problem is not where the message gets put, but that
it fails when adding an url to two different paths.
I have, though, moved that message so it will appear in error-messages.
"""]]