distgit: Don't raise, return the error to the client

Raising only sends the error to the logs, the client thinks everything
went fine.
This commit is contained in:
Mathieu Bridon 2015-06-04 10:00:17 +02:00
parent 6e8957be3b
commit 0897e5d042

View file

@ -186,7 +186,7 @@ def main():
except OSError as e:
if e.errno != errno.EEXIST:
raise e
send_error(str(e))
try:
os.link(dest_file, old_path)