mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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();
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue