From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 13:10:37 +0000 (+0100) Subject: Somewhat more meaningful error message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a8e936e197ac380d5e9cc8d24395f00a9dec42e;p=quix0rs-gnu-social.git Somewhat more meaningful error message --- 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())); }