From 0897e5d0420cfcc3d95c3f574af7aefd79b8edda Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Thu, 4 Jun 2015 10:00:17 +0200 Subject: [PATCH] distgit: Don't raise, return the error to the client Raising only sends the error to the logs, the client thinks everything went fine. --- roles/distgit/files/dist-git-upload.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/distgit/files/dist-git-upload.cgi b/roles/distgit/files/dist-git-upload.cgi index 297474164c..24134fe426 100644 --- a/roles/distgit/files/dist-git-upload.cgi +++ b/roles/distgit/files/dist-git-upload.cgi @@ -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)