diff --git a/app/assets/javascripts/repositories/repository_datatable.js.erb b/app/assets/javascripts/repositories/repository_datatable.js.erb
index 937bc3d72..d68f562aa 100644
--- a/app/assets/javascripts/repositories/repository_datatable.js.erb
+++ b/app/assets/javascripts/repositories/repository_datatable.js.erb
@@ -784,9 +784,10 @@ var RepositoryDatatable = (function(global) {
$.each(val, function(key, val) {
var input = $(selectedRecord).find('input[name=' + key + ']');
if (input) {
+ var message = Array.isArray(val.data) ? val.data[0] : val.data;
input.closest('.form-group').addClass('has-error');
input.parent().append("" +
- val.data[0] + '
');
+ message + '
');
}
});
});