Somewhat more meaningful error message
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 6 Jan 2016 13:10:37 +0000 (14:10 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 6 Jan 2016 13:10:37 +0000 (14:10 +0100)
lib/activityhandlerplugin.php

index d22b4d2f4425ebfff5b215494bbba2b1982d7485..e771034be96ec6ae0356c2681cb1ffb6754525dc 100644 (file)
@@ -585,7 +585,7 @@ abstract class ActivityHandlerPlugin extends Plugin
         try {
             $this->showNoticeListItem($nli);
         } catch (Exception $e) {
-            common_log(LOG_ERR, 'Error showing notice: ' . $e->getMessage());
+            common_log(LOG_ERR, 'Error showing notice '.$nli->getNotice()->getID().': ' . $e->getMessage());
             $nli->out->element('p', 'error', sprintf(_('Error showing notice: %s'), $e->getMessage()));
         }