You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2017/06/07 12:57:04 UTC

kylin git commit: KYLIN-2660 'Load Hive Table From Tree' page always show 'Loading Databases' without error tips, when hive error occurs and can not be connected.

Repository: kylin
Updated Branches:
  refs/heads/master 5e1c9be45 -> 1c4a939e7


KYLIN-2660 'Load Hive Table From Tree' page always show 'Loading Databases' without error tips, when hive error occurs and can not be connected.

Signed-off-by: Billy Liu <bi...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/1c4a939e
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/1c4a939e
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/1c4a939e

Branch: refs/heads/master
Commit: 1c4a939e72a923c1378561827086aa79b6fd4b64
Parents: 5e1c9be
Author: 10069681 <pe...@zte.com.cn>
Authored: Wed Jun 7 15:22:15 2017 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Wed Jun 7 20:56:45 2017 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/sourceMeta.js | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/1c4a939e/webapp/app/js/controllers/sourceMeta.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/sourceMeta.js b/webapp/app/js/controllers/sourceMeta.js
index e2fdd66..c2122ad 100755
--- a/webapp/app/js/controllers/sourceMeta.js
+++ b/webapp/app/js/controllers/sourceMeta.js
@@ -252,6 +252,15 @@ KylinApp
           }
           $scope.hiveLoaded = true;
           $scope.showMoreDatabases();
+        }, function (e) {
+          if (e.data && e.data.exception) {
+            var message = e.data.exception;
+            var msg = !!(message) ? message : 'Failed to take action.';
+            SweetAlert.swal('Oops...', msg, 'error');
+          } else {
+            SweetAlert.swal('Oops...', "Failed to take action.", 'error');
+          }
+          $scope.hiveLoaded = true;
         });
       }