Skip to content

Commit b111105

Browse files
committed
Report what the unknown generate item was when parsing --generate
1 parent be55022 commit b111105

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/options.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,10 @@ pub fn builder_from_flags<I>
302302
"methods" => config.methods = true,
303303
"constructors" => config.constructors = true,
304304
"destructors" => config.destructors = true,
305-
_ => {
305+
otherwise => {
306306
return Err(Error::new(ErrorKind::Other,
307-
"Unknown generate item"));
307+
format!("Unknown generate item: {}",
308+
otherwise)));
308309
}
309310
}
310311
}

0 commit comments

Comments
 (0)