You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/10/21 19:02:45 UTC
[3/3] ambari git commit: AMBARI-13502. Blank Tez View page is
displayed if ResourceManagers are down
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 <hi...@gmail.com>
Authored: Wed Oct 21 19:18:21 2015 +0300
Committer: Alex Antonenko <hi...@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);
}
};