aboutsummaryrefslogtreecommitdiff
path: root/app/dashboard/static/js/linaro-boots-id-1.1.4.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/dashboard/static/js/linaro-boots-id-1.1.4.js')
-rw-r--r--app/dashboard/static/js/linaro-boots-id-1.1.4.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/dashboard/static/js/linaro-boots-id-1.1.4.js b/app/dashboard/static/js/linaro-boots-id-1.1.4.js
index 0bda670..fb6e756 100644
--- a/app/dashboard/static/js/linaro-boots-id-1.1.4.js
+++ b/app/dashboard/static/js/linaro-boots-id-1.1.4.js
@@ -539,8 +539,15 @@ function createBootBisectTable(data) {
}
$('#bisect-loading-div').remove();
- $('#bad-commit').empty().append(
- '<span class="text-danger">' + badCommit + '</span>');
+ if (badCommit !== null) {
+ $('#bad-commit').empty().append(
+ '<span class="text-danger">' + badCommit + '</span>');
+ } else {
+ $('#bad-commit').empty().append(
+ '<span class="text-warning">' +
+ 'No corresponding bad commit found</span>'
+ );
+ }
if (goodCommit !== null) {
$('#good-commit').empty().append(
'<span class="text-success">' + goodCommit + '</span>');