We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf465a commit cb3a017Copy full SHA for cb3a017
compiler-rs/openapi_to_clients_schema/src/main.rs
@@ -31,7 +31,7 @@ fn main() -> anyhow::Result<()> {
31
let path = match args.len() - 1 {
32
0 => "../../../ent-search/swagger/enterprise-search.json",
33
1 => &args[1],
34
- _ => panic!("expected a single argument"),
+ _ => return Err(anyhow::anyhow!("expected a single argument")),
35
};
36
37
info!("Loading OpenAPI from {path}");
0 commit comments