refactor: improve error message when title is unset
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
{#- Setup -#}
|
{#- Setup -#}
|
||||||
|
{% if not config.title %}
|
||||||
|
{{ throw(message="ERROR: No `title` set in `config.toml`. tabi requires a title to function.") }}
|
||||||
|
{% endif %}
|
||||||
{%- set prefix = config.title | safe -%}
|
{%- set prefix = config.title | safe -%}
|
||||||
{%- set custom_separator = config.extra.separator | default(value="•") -%}
|
{%- set custom_separator = config.extra.separator | default(value="•") -%}
|
||||||
{%- set separator = " " ~ custom_separator ~ " " -%}
|
{%- set separator = " " ~ custom_separator ~ " " -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user