Browse Source

replace exception with plain text message

PHP-GTK3
yggverse 4 months ago
parent
commit
9a534caacc
  1. 6
      src/Entity/Browser/Container/Page.php

6
src/Entity/Browser/Container/Page.php

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

Loading…
Cancel
Save