[ARVADOS] updated: f820ec186b048fbd2bf6a6f9683e7bbaed52515e

git at public.curoverse.com git at public.curoverse.com
Tue Mar 11 14:59:38 EDT 2014


Summary of changes:
 sdk/python/bin/arv-mount |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

       via  f820ec186b048fbd2bf6a6f9683e7bbaed52515e (commit)
      from  a6b8d81c2a39ac50183caf03c2dd0cfe2f088819 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f820ec186b048fbd2bf6a6f9683e7bbaed52515e
Author: Tom Clegg <tom at curoverse.com>
Date:   Tue Mar 11 14:58:44 2014 -0400

    Report error message and propagate exit code if subprocess.call() fails.

diff --git a/sdk/python/bin/arv-mount b/sdk/python/bin/arv-mount
index ac9cd9b..5e773df 100755
--- a/sdk/python/bin/arv-mount
+++ b/sdk/python/bin/arv-mount
@@ -51,10 +51,14 @@ with "--".
         # wait until the driver is finished initializing
         operations.initlock.wait()
 
+        rc = 255
         try:
             rc = subprocess.call(args.exec_args, shell=False)
-        except:
-            rc = 255
+        except OSError as e:
+            sys.stderr.write('arv-mount: %s -- exec %s\n' % (str(e), args.exec_args))
+            rc = e.errno
+        except Exception as e:
+            sys.stderr.write('arv-mount: %s\n' % str(e))
         finally:
             subprocess.call(["fusermount", "-u", "-z", args.mountpoint])
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list