error on save

darcs-hash:20080618111512-84dde-835a9d92386c5a5a5e51b0879c04575e9a80fdf5.gz
This commit is contained in:
Evan Prodromou 2008-06-18 07:15:12 -04:00
parent 9eb05720a1
commit c5e8828d7e

View File

@ -148,6 +148,8 @@ class FinishaddopenidAction extends Action {
common_debug('Saving ' . print_r($oid, TRUE), __FILE__); common_debug('Saving ' . print_r($oid, TRUE), __FILE__);
if (!$oid->insert()) { if (!$oid->insert()) {
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
common_debug('DB error ' . $err->code . ': ' . $err->message, __FILE__);
return false; return false;
} }
} }