everycook / EveryCook

The worlds best recipe database
31 stars 7 forks source link

errorhandling / display #88

Open swerder opened 12 years ago

swerder commented 12 years ago

I changed the behavior if an error occur on a AJAX request. Now you will also see the errormessage as you would open the page without AJAX. So no longer need to look on browsers console, to see the error.

The current visible message layout is for the YII_DEBUG = true variant. Should I change YII_DEBUG to false, on main/productive version, and only have it to debug in the test version? or/and Should I change the display of error pages in any way?

everycook commented 12 years ago

set the debug off on productive version.

swerder commented 12 years ago

on productive debug is disable, you will no longer see code snippets on errors. todo do you need to us the testsysten from now on.

The behavior show simple errormessage instant of no change is ok I think? it would also be possible to show no information about the error message only show a "sorry error occurred" page. And sending a E-Mail with error information to a tech address.

everycook commented 12 years ago

OK sho a message "Sorry, something went wrong, but our technician just got a mail and will fix it asap"