trigger_error when exception captured

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@52 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
akulikov
2009-01-28 13:47:27 +00:00
parent cc370fa98e
commit a0bfe0848e

View File

@ -17,6 +17,7 @@ class MJException extends Exception
public function terminate()
{
if (!DEBUG_ENABLE) {
trigger_error($this->getMessage());
throw new StaticPageException(500);
}