commit | d66f9fb97f7cfe658826a1f7e956156d0b1e9354 | [log] [tgz] |
---|---|---|
author | Michael Stroucken <stroucki@apache.org> | Fri Aug 03 02:11:49 2012 +0000 |
committer | Michael Stroucken <stroucki@apache.org> | Fri Aug 03 02:11:49 2012 +0000 |
tree | 600698ad64d42de25c70840d483a406718eaa06a | |
parent | be680abfe66ec3a324e5337692e89b68e44cc105 [diff] |
tashi-client: make sure we raise a remote exception so the client can handle it. git-svn-id: https://svn.apache.org/repos/asf/incubator/tashi/trunk@1368768 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/tashi/client/tashi-client.py b/src/tashi/client/tashi-client.py index 85920f7..5171b83 100755 --- a/src/tashi/client/tashi-client.py +++ b/src/tashi/client/tashi-client.py
@@ -640,6 +640,9 @@ fargs = [] res = f(*fargs) + if (type(res) is Exception) or \ + (type(res) is TashiException): + raise res except TashiException, e: print "Failed in calling %s: %s" % (function, e.msg)