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

PHP Integrating PHP with Databases Databases and PHP More Exceptions

Should we show any kind of error in a production projects?

Should we show any kind of error in a production projects or it's better to keep silent?

2 Answers

Alena Holligan
STAFF
Alena Holligan
Treehouse Teacher

There should be no server errors shown directly to the user. If there are things, like external systems you rely on, you should be catching those exceptions and displaying your own error. Logging on production is very important to make sure you catch anything that might get by.

Justin Horner , I guess Robbie meant something different. I also wondered, should we change the error level to "always show" as Alena Holligan did in this video in projects that go for a production. I think Robbie meant this.