replace exception with plain text message

This commit is contained in:
yggverse 2024-07-17 22:51:12 +03:00
parent 9be1f030f4
commit 9a534caacc

View file

@ -242,7 +242,11 @@ class Page
default:
throw new \Exception(
$this->title->setValue(
_('Oops!')
);
$this->content->setPlain(
_('MIME type not supported')
);
}