|
|
@@ -50,7 +50,8 @@ class HbaseApi(object):
|
|
|
if 'Could not connect to' in e.message:
|
|
|
raise PopupException(_("HBase Thrift 1 server cannot be contacted: %s") % e.message)
|
|
|
else:
|
|
|
- raise PopupException(_("Api Error: %s") % e.message)
|
|
|
+ error_msg = e.message.split('\n', 1)[0]
|
|
|
+ raise PopupException(_("Api Error: %s") % error_msg)
|
|
|
|
|
|
def queryCluster(self, action, cluster, *args):
|
|
|
client = self.connectCluster(cluster)
|