Add debug UI trace for empty parsed images array
This commit is contained in:
@@ -166,6 +166,11 @@
|
||||
return imageExtensions.indexOf(ext) !== -1;
|
||||
});
|
||||
|
||||
if (images.length === 0) {
|
||||
$main.html('<p style="text-align:center;color:#fff;padding:2em;">JSON Array from Nginx was loaded, but 0 images matched!<br/>Raw files: ' + JSON.stringify(files) + '</p>');
|
||||
return;
|
||||
}
|
||||
|
||||
images.sort(function(a, b) {
|
||||
return a.name.localeCompare(b.name);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user