[Server-devel] [PATCH] ds-backup client - exit with HTTP error codes when appropriate

martin.langhoff at gmail.com martin.langhoff at gmail.com
Mon Jun 30 15:11:47 EDT 2008


From: Martin Langhoff <martin at laptop.org>

So callers can potentially do something smart with them.

Thanks to Michael Stone <mstone at laptop.org> for the idea.
---
 client/ds_backup.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/ds_backup.py b/client/ds_backup.py
index 089a2e9..0194fa4 100755
--- a/client/ds_backup.py
+++ b/client/ds_backup.py
@@ -144,5 +144,5 @@ if __name__ == "__main__":
             exit(1)
         else:
             # 500, 404, 403, or other unexpected value
-            exit(1)
+            exit(sstatus)
 
-- 
1.5.6.dirty



More information about the Server-devel mailing list