irm5/include/DBI/DBI.php
/** Decease if the database is suffering from an error.
     */
Decease if the database is suffering from an error.
Decease if the database is suffering from an error .
function DieOnError($noisy = false)
    {
        if ($this->error)
        {
            $msg = $this->error->GetMessage()."\n"
                .$this->error->GetUserInfo();
            $msg = preg_replace('%mysql://([^:]*):[^@]*@%', 'mysql://\\1:xxx@', $msg);
            if ($noisy)
            {
                echo $msg;
            }
            trigger_error($msg, E_USER_ERROR);
            exit;
        }
    }
function DieOnError ( $ noisy = false ) { if ( $ this -> error ) { $ msg = $ this -> error -> GetMessage ( ) . " \n " . $ this -> error -> GetUserInfo ( ) ; $ msg = preg_replace ( '%mysql://([^:]*):[^@]*@%' , 'mysql://\\1:xxx@' , $ msg ) ; if ( $ noisy ) { echo $ msg ; } trigger_error ( $ msg , E_USER_ERROR ) ; exit ; } }
Decease if the database is suffering from an error.
Decease if the database is suffering from an error .
// Mask DSN password, for safety's sake