diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-07-28 15:23:07 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-07-28 15:23:14 +0200 |
commit | 0aab83bc0adf1582c3595b2edba7ecfcc1799ce4 (patch) | |
tree | f5257380567a7f80ea77c32b81d231bbd134253c /server | |
parent | da4d4ce1007379c26b70e38b5acb84c8718d96df (diff) | |
download | sonarqube-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.js | 2 |
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 }]); }); } }); |