This commit is contained in:
Wren 2020-06-09 00:15:58 -04:00
parent 35ba4087fa
commit 43fde41e29

View file

@ -81,7 +81,11 @@ function setupImageUpload() {
disableFetch();
scrapeUrl(remoteUrl.value).then(data => {
if (data.errors && data.errors.length > 0) {
if (data == null) {
scraperError.innerText = "No image found at that address.";
showError();
return;
} else if (data.errors && data.errors.length > 0) {
scraperError.innerText = data.errors.join(' ');
showError();
return;