Changeset 91feee


Ignore:
Timestamp:
08/19/10 16:16:38 (7 years ago)
Author:
pierre-alain <pierre-alain@…>
Branches:
master
Children:
4ade32
Parents:
6fd857
git-author:
pierre-alain <pierre-alain@…> (08/19/10 16:16:38)
git-committer:
pierre-alain <pierre-alain@…> (08/19/10 16:16:38)
Message:

catching eventual errors while trying to intercept it !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • index.php

    r22257f r91feee  
    5757catch(Exception $e) 
    5858{ 
    59     Logs::iGet()->log($e->getContent(), $e->getCode()); 
    60     Controller::iGet()->renderPage($e->getCode()); 
     59    try 
     60    { 
     61        Logs::iGet()->log($e->getContent(), $e->getCode()); 
     62        Controller::iGet()->renderPage($e->getCode()); 
     63    } 
     64    catch(Exception $e) 
     65    { 
     66        if(!headers_sent()) 
     67            header('HTTP/1.1 500 Internal error'); 
     68 
     69        echo $e->getContent(); 
     70    } 
    6171} 
    6272 
Note: See TracChangeset for help on using the changeset viewer.