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)