From f56ff3e06fcf5c8b89a5a50057a10ff6d1e15044 Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 22 Sep 2022 18:46:38 +0200 Subject: [PATCH] Check for no feeds found. --- source/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/main.rs b/source/main.rs index ca6950d..555ef92 100644 --- a/source/main.rs +++ b/source/main.rs @@ -212,6 +212,11 @@ fn main() -> Result<()> { ..Default::default() }; + if feeds_to_output.is_empty() { + eprintln!("No feeds found."); + return Ok(()); + } + for feed in feeds_to_output { if args.opml { opml_document