minor fixes
This commit is contained in:
parent
f2e4db7e66
commit
7647ab913f
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ async function loadJson(url) { // (1)
|
|||
throw new Error(response.status);
|
||||
}
|
||||
|
||||
loadJson('no-such-user.json')
|
||||
loadJson('https://javascript.info/no-such-user.json')
|
||||
.catch(alert); // Error: 404 (4)
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue