Better error handling in Bookmark

This commit is contained in:
Mikael Nordfeldth
2015-10-12 18:28:32 +02:00
parent 67e7bc55ea
commit 3f4d4cb7a0
2 changed files with 14 additions and 22 deletions

View File

@@ -625,7 +625,11 @@ abstract class ActivityHandlerPlugin extends Plugin
return true;
}
$this->showNoticeContent($stored, $out, $scoped);
try {
$this->showNoticeContent($stored, $out, $scoped);
} catch (Exception $e) {
$out->element('div', 'error', $e->getMessage());
}
return false;
}