Somewhat more meaningful error message

This commit is contained in:
Mikael Nordfeldth 2016-01-06 14:10:37 +01:00
parent 0fd2ad649e
commit 4a8e936e19

View 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()));
}