Reject scrape with empty URL list (#93)
This commit is contained in:
1 parent
986bcf5b8e
commit
6f150065bc
1 file changed
+4
@@ -465,6 +465,10 @@ async fn run_parallel_scrape(
|
||||
let total = urls.len();
|
||||
let start = Instant::now();
|
||||
|
||||
if total == 0 {
|
||||
anyhow::bail!("No URLs provided. Pass at least one URL to scrape.");
|
||||
}
|
||||
|
||||
eprintln!(
|
||||
"Scraping {} URLs with {} concurrent workers (per-worker timeout: {}s)...",
|
||||
total, concurrency, timeout_secs
|
||||
|
||||
Reference in new issue
Block a user