From 4a8e936e197ac380d5e9cc8d24395f00a9dec42e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 14:10:37 +0100 Subject: [PATCH] Somewhat more meaningful error message --- lib/activityhandlerplugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activityhandlerplugin.php b/lib/activityhandlerplugin.php index d22b4d2f44..e771034be9 100644 --- a/lib/activityhandlerplugin.php +++ b/lib/activityhandlerplugin.php @@ -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())); }