Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Marcus Schumacher16,616 Points
Can't get try catch block to work properly
At the end of the video, he gets a nice clean error message from his try catch block. I can not get my try catch block to display the error.message
Aakash Srivastava5,415 Points
Hey friend Marcus Schumacher , you have done everything correctly , just a little mistake .
Notice ,in the video , when Chalkers is showing you the example of throwing error , then in first example , he wrote
www but in the second video :
- he has removed the whole
- he also removed the whole
https://so URL is only
teamtreehouse.comBut what you have done is , you have not removed
www, it's still there . That's why , it's showing two error .
One for 1 case and another for 2 case.
Hope it will help :)