feat: engine check is performed at compile time

so should use compile time errors
This commit is contained in:
Stephen von Takach 2022-06-02 08:13:06 +10:00 committed by GitHub
parent b7289f80ad
commit c783e5e6bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ module Kilt
{% if Kilt::ENGINES[ext] %}
{{Kilt::ENGINES[ext]}}({{filename}}, {{io_name}}, {{*args}})
{% else %}
raise Kilt::Exception.new("Unsupported template engine for extension: \"" + {{ext}} + "\"")
{% raise "Unsupported template engine for extension: #{ext}" %}
{% end %}
end