mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
Search example: panic when missing the index path
This commit is contained in:
parent
af65fe201a
commit
626a93b348
@ -14,7 +14,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
let mut args = std::env::args();
|
let mut args = std::env::args();
|
||||||
let program_name = args.next().expect("No program name");
|
let program_name = args.next().expect("No program name");
|
||||||
let dataset = args.next().unwrap_or_else(|| {
|
let dataset = args.next().unwrap_or_else(|| {
|
||||||
format!(
|
panic!(
|
||||||
"Missing path to index. Usage: {} <PATH-TO-INDEX> [<logger-dir>] [print-documents]",
|
"Missing path to index. Usage: {} <PATH-TO-INDEX> [<logger-dir>] [print-documents]",
|
||||||
program_name
|
program_name
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user