Skip to content

Commit 331862a

Browse files
author
bors-servo
authored
Auto merge of #858 - fitzgen:report-unknown-generate-item, r=emilio
Report what the unknown generate item was when parsing `--generate` r? @emilio
2 parents be55022 + b111105 commit 331862a

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)