JavaScript Asynchronous Programming with JavaScript Exploring Async/Await Error Handling with try...catch

wc93
wc93
24,882 Points

The event listener try -catch code snippet does not seem to work if something is wrong with the urls

Heads up Treehouse. The event listener try -catch code snippet does not seem to work if something is wrong with the urls. Does not display the h3 "Something went wrong!" Par for the course. Please fix this course. There are divots everywhere.

3 Answers

Robert Manolis
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Robert Manolis
Treehouse Guest Teacher

Hi wc93, thanks for reaching out about this. It looks like there was a typo in the snippet in the teacher's notes. That snippet was trying to set the h3 as the innerHTML of element stored in the astrosList variable. But there is no astrosList variable. What was needed there was the peopleList variable. I updated that snippet in the teacher's notes and the new snippet does now indeed display the h3 error message when I break the URLs. :thumbsup:

Daniel Cranney
Daniel Cranney
10,393 Points

This course is so demoralising. There are so many issues in the first few parts of it that's its hard to get a deep understanding of it, so it just feels like with every line that this is slipping away from them (when he starts cutting lines out, he does it so quickly and I'm just not sure why he's doing it).

Treehouse, PLEASE fix this course!

wc93
wc93
24,882 Points

Thanks Robert.