CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Check if error has an error stack to prevent crash on some error logs #299

Closed FilipNest closed 8 years ago

FilipNest commented 8 years ago

If a caught error didn't have a stack it was crashing the system because err.stack[0].getLineNumber() didn't exist. Wrapped it a condition block.