fix: handle missing template with warning

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4.6) <aider@aider.chat>
This commit is contained in:
thiswillbeyourgithub 2026-02-24 01:02:37 +01:00
parent f5ac493bbd
commit a2d96a591c
1 changed files with 2 additions and 2 deletions

4
sanoid
View File

@ -1021,9 +1021,9 @@ sub init {
my $template = 'template_'.$rawtemplate; my $template = 'template_'.$rawtemplate;
# Check if template exists # Check if template exists - warn otherwise
if (!exists $ini{$template}) { if (!exists $ini{$template}) {
die "FATAL ERROR: Template '$rawtemplate' referenced in section [$section] does not exist in $conf_file.\n"; warn "WARN: Template '$rawtemplate' referenced in section [$section] does not exist in $conf_file.\n";
} }
foreach my $key (keys %{$ini{$template}}) { foreach my $key (keys %{$ini{$template}}) {