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 0abaf16 commit 71c8130Copy full SHA for 71c8130
crates/arborium-cli/src/main.rs
@@ -33,7 +33,11 @@ struct Args {
33
34
fn main() {
35
let args: Args = facet_args::from_std_args().unwrap_or_else(|e| {
36
- eprintln!("Error: {:?}", e);
+ if let Some(text) = e.help_text() {
37
+ eprintln!("{text}");
38
+ } else {
39
+ eprintln!("{:?}", miette::Report::new(e));
40
+ }
41
std::process::exit(1);
42
});
43
xtask/src/generate.rs
@@ -2666,6 +2666,7 @@ all-languages = [
2666
arborium = {{ version = "{version}", path = "../arborium" }}
2667
facet = "0.33.0"
2668
facet-args = "0.33.0"
2669
+miette = {{ version = "7.6.0", features = ["fancy-no-backtrace"] }}
2670
"#
2671
));
2672
0 commit comments