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 Node.js Basics (2014) Building a Command Line Application Handling Errors in Node

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 Points

Node.js Cannot generate error

Hi,

I am using Node version 0.12.4 in Workspaces and I am unable to generate an error. Instead, I am still getting a printout of 200 in the console from the previous log of response.statusCode.

What could be wrong?

Thanks!

Patrick Cooney
Patrick Cooney
12,216 Points

Can you post your code for us?

alex gwartney
alex gwartney
8,849 Points

so just to try to clear this up a bit more from what your saying it sounds like the server isnt restarting? Also since its been a while since i did the node js course when you say "I am unable to generate an error" Are you expecting one?