fix: removed unwrap from template to handle with proper error message

This commit is contained in:
Gerald Pinder 2024-01-04 00:07:55 -05:00
parent 7ae8dcd273
commit ebd399e960
2 changed files with 9 additions and 4 deletions

View file

@ -10,7 +10,7 @@
RUN chmod +x /tmp/modules/{{ type }}/{{ type }}.sh && source /tmp/exports.sh && /tmp/modules/{{ type }}/{{ type }}.sh '{{ self::print_module_context(module) }}'
{%- endif %}
{%- else if let Some(from_file) = module.from_file %}
{{ self::get_module_from_file(from_file).render().unwrap() }}
{{ self::get_module_from_file(from_file) }}
{%- endif %}
{%- endfor %}