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! While you're at it, check out some resources Treehouse students have shared here.
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
Unexpected error line 37 functions.php
I get an error at line 36 in functions.php so I cannot refresh the website without the error popping up, which makes it hard for me to continue with this class.
here's a snapshot of my code https://w.trhou.se/914wd6s2qv
Jennifer NordellTreehouse Teacher
Hi there, Kaleb Mesho Abraha ! I took the liberty of forking your workspace and the error is an unexpected end of file. On line 37 there is a close curly brace that matches up to close the
catch part of that function. But there is not matching closing curly brace for the function itself which is resulting in an unexpected end. On line 38 there should be an additional closing curly brace
}. Adding this corrects the error and I can once again click on the "Books" link with no problems.
Hope this helps!