diff --git a/curriculum/challenges/english/blocks/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/english/blocks/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index f33eb7a75cb..ba8bd827b33 100644 --- a/curriculum/challenges/english/blocks/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/english/blocks/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -7,7 +7,7 @@ dashedName: step-28 # --description-- -Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. +Finally, what if there's an error and the author data fails to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. diff --git a/curriculum/challenges/english/blocks/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/english/blocks/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md index 0e20bdedc7a..c87376eddcc 100644 --- a/curriculum/challenges/english/blocks/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/english/blocks/workshop-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -7,7 +7,7 @@ dashedName: step-23 # --description-- -Finally, what if there's an error and the author data fail to load? Then you need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. +Finally, what if there's an error and the author data fails to load? Then you need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with a `class` attribute of `"error-msg"` and text `"There was an error loading the authors"`.