Error handling in template

Is there a way to handle error in a template? For example, using

{% set author = get_taxonomy_url(kind="authors", name=page.title, lang=page.lang) %}

will fail if get_taxonomy_url does not find the author with the same name as the page’s title but there is no mean to handle this case.

There isn’t a good story about handling failures from functions/filters rather than just the current errors.

What do you mean? I would be happy if get_taxonomy_url return Option and check in the template wether it’s Some or None.

Yep but that isn’t the case right now, it would be a change which could silently fail if you typo