ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [11/14] ambari git commit: AMBARI-18493 Error on manage group popup. (ababiichuk)
Date Fri, 30 Sep 2016 16:01:35 GMT
AMBARI-18493 Error on manage group popup. (ababiichuk)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 013b7bd08117abc082400279f7b24d33a9819e34
Parents: 32ab17b
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Thu Sep 29 15:40:22 2016 +0300
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Fri Sep 30 10:33:49 2016 +0300

----------------------------------------------------------------------
 .../controllers/main/service/manage_config_groups_controller.js    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/013b7bd0/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
index ad44b9c..539d03e 100644
--- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
+++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
@@ -931,7 +931,7 @@ App.ManageConfigGroupsController = Em.Controller.extend(App.ConfigOverridable,
{
         var errors = [];
         var self = this;
         var finishFunction = function (xhr, text, errorThrown) {
-          if (xhr && errorThrown) {
+          if (xhr && typeof (errorThrown) === 'string') {
             var error = xhr.status + "(" + errorThrown + ") ";
             try {
               var json = $.parseJSON(xhr.responseText);


Mime
View raw message