send fail messages to error log

This commit is contained in:
Sarah Hoffmann
2012-03-04 19:06:20 +01:00
parent d88778a561
commit a517dd0ccf

View File

@@ -3,7 +3,7 @@
function fail($sError, $sUserError = false)
{
if (!$sUserError) $sUserError = $sError;
log('ERROR:'.$sError);
error_log('ERROR: '.$sError);
echo $sUserError."\n";
exit;
}