Skip to content

Catch all errors thrown when generating shortcode replacements

Compare
Choose a tag to compare
@FabianSchmick FabianSchmick released this 17 May 14:10
· 28 commits to master since this release
e47f44a
Catch all errors thrown when generating shortcode replacements (#17)

When a controller that is used to generate shortcode replacements throws an Exception, this exeception will currently fall-through.

I think this kind of errors should be contained, and we should try to display the shortcode as unchanged as possible, as if we had not attempted to resolve it in the first place (of course, logging the problem).

Co-authored-by: Fabian Schmick <fs@webfactory.de>