Somewhat more meaningful error message
This commit is contained in:
parent
0fd2ad649e
commit
4a8e936e19
@ -585,7 +585,7 @@ abstract class ActivityHandlerPlugin extends Plugin
|
|||||||
try {
|
try {
|
||||||
$this->showNoticeListItem($nli);
|
$this->showNoticeListItem($nli);
|
||||||
} catch (Exception $e) {
|
} 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()));
|
$nli->out->element('p', 'error', sprintf(_('Error showing notice: %s'), $e->getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user