mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
replace exception with plain text message
This commit is contained in:
parent
9be1f030f4
commit
9a534caacc
1 changed files with 5 additions and 1 deletions
|
|
@ -242,7 +242,11 @@ class Page
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
throw new \Exception(
|
$this->title->setValue(
|
||||||
|
_('Oops!')
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->content->setPlain(
|
||||||
_('MIME type not supported')
|
_('MIME type not supported')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue