From c2315c16184a96babf939b99d18a5fa5d07738a8 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 11 Aug 2009 02:51:03 +0000 Subject: [PATCH] MINOR: updated set_spam_protector to throw a warning if an incorrect spam protector is detected. MINOR: added exception output to warning to make debugging easier --- code/SpamProtectorManager.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/code/SpamProtectorManager.php b/code/SpamProtectorManager.php index 185aaeb..cd3d7f3 100644 --- a/code/SpamProtectorManager.php +++ b/code/SpamProtectorManager.php @@ -1,15 +1,19 @@ updateForm($form, $before, $fieldsToSpamServiceMapping); } catch (Exception $e) { - user_error("SpamProtectorManager::update_form(): '$protectorClass' is not correctly set up.", E_USER_WARNING); + user_error("SpamProtectorManager::update_form(): '$protectorClass' is not correctly set up. " . $e, E_USER_WARNING); } if(!$check) return null;