aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-07-28 15:23:07 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-07-28 15:23:14 +0200
commit0aab83bc0adf1582c3595b2edba7ecfcc1799ce4 (patch)
treef5257380567a7f80ea77c32b81d231bbd134253c /server
parentda4d4ce1007379c26b70e38b5acb84c8718d96df (diff)
downloadsonarqube-0aab83bc0adf1582c3595b2edba7ecfcc1799ce4.tar.gz
sonarqube-0aab83bc0adf1582c3595b2edba7ecfcc1799ce4.zip
fix the error message when creating a custom metric
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/create-view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/metrics/create-view.js b/server/sonar-web/src/main/js/apps/metrics/create-view.js
index 06a192eac33..9e2145fbee7 100644
--- a/server/sonar-web/src/main/js/apps/metrics/create-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/create-view.js
@@ -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 }]);
});
}
});