better error reporting
darcs-hash:20080707074434-84dde-ffc9b2caeef3e9fef9607511b425880986883d72.gz
This commit is contained in:
parent
834df790ce
commit
8688d707eb
|
@ -852,7 +852,9 @@ function common_save_replies($notice) {
|
|||
}
|
||||
$id = $reply->insert();
|
||||
if (!$id) {
|
||||
common_log_db_error($reply, 'INSERT', __FILE__);
|
||||
$last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
|
||||
common_log(LOG_ERROR, 'DB error inserting reply: ' . $last_error->message);
|
||||
common_server_error('DB error inserting reply: ' . $last_error->message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user