ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [3/3] ambari git commit: AMBARI-13502. Blank Tez View page is displayed if ResourceManagers are down
Date Wed, 21 Oct 2015 17:02:45 GMT
AMBARI-13502. Blank Tez View page is displayed if ResourceManagers are down


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/66f8ad41
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/66f8ad41
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/66f8ad41

Branch: refs/heads/trunk
Commit: 66f8ad413aa94a034fc3e5477fd8c37177587d07
Parents: 0a9df8c
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Wed Oct 21 19:18:21 2015 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Oct 21 20:02:35 2015 +0300

----------------------------------------------------------------------
 .../tez/src/main/resources/ui/scripts/init-ambari-view.js      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/66f8ad41/contrib/views/tez/src/main/resources/ui/scripts/init-ambari-view.js
----------------------------------------------------------------------
diff --git a/contrib/views/tez/src/main/resources/ui/scripts/init-ambari-view.js b/contrib/views/tez/src/main/resources/ui/scripts/init-ambari-view.js
index 615c727..bd2e9a6 100644
--- a/contrib/views/tez/src/main/resources/ui/scripts/init-ambari-view.js
+++ b/contrib/views/tez/src/main/resources/ui/scripts/init-ambari-view.js
@@ -161,7 +161,7 @@ App.Helpers.ambari = (function () {
         context: this,
         url: getURL(),
         success: this.getInstanceParametersSuccessCallback,
-        error: this.getInstanceParametersErrorCallback,
+        error: this.getInstanceParametersErrorCallback
       });
     },
 
@@ -180,7 +180,9 @@ App.Helpers.ambari = (function () {
      * @method getInstanceParametersErrorCallback
      */
     getInstanceParametersErrorCallback: function (request, ajaxOptions, error) {
-      Ember.assert('Ambari instance parameter fetch failed: ' + error);
+      var message = 'Ambari instance parameter fetch failed: ' + error;
+      App.Helpers.ErrorBar.getInstance().show(message);
+      Ember.assert(message);
     }
   };
 


Mime
View raw message