Skip to content

Commit be217c6

Browse files
lzldevvoidcoefficient
authored andcommitted
fix: use package name on error message
1 parent 130a981 commit be217c6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/error.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
use std::process::exit;
22

33
pub fn invalid(cause: &str) {
4-
eprintln!("invalid {}. get help by running `conf set --help`", cause);
4+
eprintln!(
5+
"invalid {}. get help by running `{} --help`",
6+
cause,
7+
env!("CARGO_PKG_NAME")
8+
);
59
exit(1);
610
}

0 commit comments

Comments
 (0)