log this error, fix variable name
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 24 May 2010 17:09:23 +0000 (13:09 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 24 May 2010 17:09:23 +0000 (13:09 -0400)
horde/admin/perms/addchild.php

index a6f5208..728e3df 100644 (file)
@@ -48,7 +48,8 @@ if ($ui->validateAddForm($info)) {
         header('Location: ' . $url);
         exit;
     } catch (Exception $e) {
-        $notification->push(sprintf(_("\"%s\" was not created: %s."), $perms->getTitle($child->getName()), $result->getMessage()), 'horde.error');
+        Horde::logMessage($e, 'ERR');
+        $notification->push(sprintf(_("\"%s\" was not created: %s."), $perms->getTitle($child->getName()), $e->getMessage()), 'horde.error');
     }
 }