]> source.dussan.org Git - sonarqube.git/commitdiff
fix the error message when creating a custom metric
authorStas Vilchik <vilchiks@gmail.com>
Tue, 28 Jul 2015 13:23:07 +0000 (15:23 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 28 Jul 2015 13:23:14 +0000 (15:23 +0200)
server/sonar-web/src/main/js/apps/metrics/create-view.js

index 06a192eac332d397ab9d27a531a2e08950cafe9b..9e2145fbee7237aefddaf8e745bc5f9b7722efd8 100644 (file)
@@ -27,8 +27,8 @@ define([
         }
         that.destroy();
       }).fail(function (jqXHR) {
+        that.showErrors(jqXHR.responseJSON.errors, jqXHR.responseJSON.warnings);
         that.enableForm();
-        that.showErrors([{ msg: jqXHR.responseJSON.err_msg }]);
       });
     }
   });