diff --git a/milli/examples/search.rs b/milli/examples/search.rs index ecc7f9cb8..30ce5eca7 100644 --- a/milli/examples/search.rs +++ b/milli/examples/search.rs @@ -14,7 +14,7 @@ fn main() -> Result<(), Box> { let mut args = std::env::args(); let program_name = args.next().expect("No program name"); let dataset = args.next().unwrap_or_else(|| { - format!( + panic!( "Missing path to index. Usage: {} [] [print-documents]", program_name )