aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-09-01 18:02:07 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-09-01 18:02:07 +0200
commita5a4a49e0c8ded4740a0de91a31cf2c689a2f94c (patch)
tree02688c7edfb905f0a09183f45224c381f53d2355 /server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs
parentd2da7f30d512284c943b82abc135483b59b85536 (diff)
downloadsonarqube-a5a4a49e0c8ded4740a0de91a31cf2c689a2f94c.tar.gz
sonarqube-a5a4a49e0c8ded4740a0de91a31cf2c689a2f94c.zip
SONAR-7846 do not display both message and stacktrace
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs b/server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs
index 1a4d2eb4753..21ce604acb2 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs
+++ b/server/sonar-web/src/main/js/apps/background-tasks/views/StacktraceView.hbs
@@ -6,12 +6,12 @@
<div class="js-modal-messages"></div>
{{#if loaded}}
- <h4 class="spacer-bottom">{{t 'background_tasks.error_message'}}</h4>
- <pre class="js-task-error-message">{{task.errorMessage}}</pre>
-
{{#if stacktrace}}
- <h4 class="huge-spacer-top spacer-bottom">{{t 'background_tasks.error_stacktrace'}}</h4>
+ <h4 class="spacer-bottom">{{t 'background_tasks.error_stacktrace'}}</h4>
<pre class="js-task-stacktrace">{{stacktrace}}</pre>
+ {{else}}
+ <h4 class="spacer-bottom">{{t 'background_tasks.error_message'}}</h4>
+ <pre class="js-task-error-message">{{task.errorMessage}}</pre>
{{/if}}
{{else}}
<i class="spinner"></i>