Improve error message for retry < 2.

Fixes #125
This commit is contained in:
ppom 2025-06-17 12:00:00 +02:00
commit 9963ef4192
No known key found for this signature in database

View file

@ -128,7 +128,7 @@ impl Filter {
}
if self.retry.is_some_and(|r| r < 2) {
return Err("retry has been specified but is < 2".into());
return Err("retry must be >= 2. Remove 'retry' and 'retryperiod' to trigger at the first occurence.".into());
}
if let Some(retry_period) = &self.retry_period {