Show output when there is only success duration too.
diff --git a/asterix-app/src/main/resources/webui/querytemplate.html b/asterix-app/src/main/resources/webui/querytemplate.html
index 40ce161..f1c2e7e 100644
--- a/asterix-app/src/main/resources/webui/querytemplate.html
+++ b/asterix-app/src/main/resources/webui/querytemplate.html
@@ -57,9 +57,14 @@
var errorPattern = /<div class="accordion" id="errorblock">/g;
var resultCount = data.match(resPattern);
- if (!resPattern.test(data) && errorPattern.test(data)) {
- $('#output-heading').html('Error');
- $('#output-heading').addClass('error');
+ if (!resPattern.test(data)) {
+ if(errorPattern.test(data)) {
+ $('#output-heading').html('Error');
+ $('#output-heading').addClass('error');
+ } else {
+ $('#output-heading').html('Output');
+ $('#output-heading').removeClass('error');
+ }
$('#output-message').html(data);
} else {
$('#output-heading').html('Output');