function vdie($message, $pretty) { if ($pretty) { dienice($message); } else { die($message); } }
/** * Calls dienice with mysql_error appended to $message. * * @param string $message * * @todo: make this prettier */ function sqldie($message) { dienice($message . " " . mysql_error()); }