mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
Merge pull request #135 from derpibooru/fetch_no_error_msg_bug
Fixes #134
This commit is contained in:
commit
ccd35f4d07
1 changed files with 5 additions and 1 deletions
|
@ -81,7 +81,11 @@ function setupImageUpload() {
|
||||||
disableFetch();
|
disableFetch();
|
||||||
|
|
||||||
scrapeUrl(remoteUrl.value).then(data => {
|
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(' ');
|
scraperError.innerText = data.errors.join(' ');
|
||||||
showError();
|
showError();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue