diff options
author | 2016-02-12 14:11:25 -0400 | |
---|---|---|
committer | 2016-02-12 14:11:25 -0400 | |
commit | 265cbb0f66881102aa11f73d0cff41c773ddb3a9 (patch) | |
tree | 91d31302227d58819c45ed262dad822be5ca1ef4 /Utility/Exception.hs | |
parent | f7ab2860e6cb99b49a9f737b47571fb15c61df58 (diff) |
create directory for transfer lock file, and catch perm error
Before, the call to mkProgressUpdater created the directory as a
side-effect, but since that ignored failure to create it, this led to
a "does not exist" exception when the transfer lock file was created,
rather than a permissions error.
So, make sure the directory exists before trying to lock the file in it.
When a PermissionDenied exception is caught, skip making the transfer lock.
This lets downloads from readonly remotes happen.
If an upload is being tried, and the lock file can't be written due to
permissions, then probably the actual transfer will fail for the same
reason, so I think it's ok that it continues w/o taking the lock in that
case.
Diffstat (limited to 'Utility/Exception.hs')
0 files changed, 0 insertions, 0 deletions