incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1355163 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py
Date Thu, 28 Jun 2012 21:24:56 GMT
Author: stroucki
Date: Thu Jun 28 21:24:55 2012
New Revision: 1355163

URL: http://svn.apache.org/viewvc?rev=1355163&view=rev
Log:
tashi-client: render tashi exceptions by their messages

Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=1355163&r1=1355162&r2=1355163&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Thu Jun 28 21:24:55 2012
@@ -645,6 +645,11 @@ def main():
 				fargs = []
 
 			res = f(*fargs)
+
+		except TashiException, e:
+			print "Failed in calling %s: %s" (function, e.msg)
+			sys.exit(-1)
+
 		except Exception, e:
 			print "Failed in calling %s: %s" % (function, e)
 			print "Please run tashi-client --examples for syntax information"



Mime
View raw message