change error ms
This commit is contained in:
parent
8a3011587d
commit
692acc644c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ fetch(request)
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response.json();
|
return response.json();
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Something went wrong on api server!');
|
throw new Error('Something went wrong fetching the image!');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|
Loading…
Reference in a new issue