]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
error on save
authorEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 11:15:12 +0000 (07:15 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 11:15:12 +0000 (07:15 -0400)
darcs-hash:20080618111512-84dde-835a9d92386c5a5a5e51b0879c04575e9a80fdf5.gz

actions/finishaddopenid.php

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