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

JavaScript

jason limmm
jason limmm
8,009 Points

running into my error page

here is my snapshot:https://w.trhou.se/ebmepcoasg

when i try to run the page i get redirected to my error page, this happened after i set the /ask route i don't really know what happened i thought i did everything correctly

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey jason limmm 👋

There's an issue in your mainpage.pug file as there is a space missing between the attribute and the text content of your anchor tag:

    a(href='/survey')lemme ask you some questions
                    ^

Adding a space there should fix the issue and render your page as expected. I highly recommend rendering the actual error on your error page. This way you get some valuable messages where the error originates from 🙂

Hope this helps!