mirror of https://github.com/jimsalterjrs/sanoid
fix: handle missing template with warning
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4.6) <aider@aider.chat>
This commit is contained in:
parent
f5ac493bbd
commit
a2d96a591c
4
sanoid
4
sanoid
|
|
@ -1021,9 +1021,9 @@ sub init {
|
|||
|
||||
my $template = 'template_'.$rawtemplate;
|
||||
|
||||
# Check if template exists
|
||||
# Check if template exists - warn otherwise
|
||||
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}}) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue