summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Subscription.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/Subscription.php b/classes/Subscription.php
index 878ab83e6..da695c36e 100644
--- a/classes/Subscription.php
+++ b/classes/Subscription.php
@@ -185,10 +185,13 @@ class Subscription extends Memcached_DataObject
if ($token->find(true)) {
$result = $token->delete();
+
if (!$result) {
- common_log_db_error($sub, 'DELETE', __FILE__);
+ common_log_db_error($token, 'DELETE', __FILE__);
throw new Exception(_('Couldn\'t delete subscription OMB token.'));
}
+ } else {
+ common_log(LOG_ERR, "Couldn't find credentials with token {$token->tok}");
}
}