log a db error for inserting the notice

darcs-hash:20080926165029-5ed1f-60059ffeac9a39326fc6286faf4ac13c35127f25.gz
This commit is contained in:
Evan Prodromou 2008-09-26 12:50:29 -04:00
parent 85c0d71e1f
commit f951b91693

View File

@ -94,6 +94,7 @@ class Notice extends Memcached_DataObject
$id = $notice->insert();
if (!$id) {
common_log_db_error($notice, 'INSERT', __FILE__);
return _('Problem saving notice.');
}