From a2d96a591c6ed5c0a1bdb6dbd5a755f8e98362be Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com> Date: Tue, 24 Feb 2026 01:02:37 +0100 Subject: [PATCH] fix: handle missing template with warning Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4.6) --- sanoid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanoid b/sanoid index 1e32ecd..309fd96 100755 --- a/sanoid +++ b/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}}) {