try to fall back to default for exceptions on microapps

This commit is contained in:
Evan Prodromou 2011-04-10 19:33:11 -04:00
parent a665d1f772
commit 57741c46ef

View File

@ -284,7 +284,14 @@ abstract class MicroAppPlugin extends Plugin
$out = $nli->out;
$notice = $nli->notice;
$this->showNotice($notice, $out);
try {
$this->showNotice($notice, $out);
} catch (Exception $e) {
common_log(LOG_ERR, $e->getMessage());
// try to fall back
$nli->showAuthor();
$nli->showContent();
}
$nli->showNoticeLink();
$nli->showNoticeSource();