style: 简化错误信息的多行打印格式
This commit is contained in:
parent
1c7927357e
commit
c166999d65
|
|
@ -159,12 +159,7 @@ fn main() {
|
|||
error: {message}"
|
||||
);
|
||||
} else {
|
||||
eprintln!(
|
||||
"[error-kind: {kind}]
|
||||
error: {message}
|
||||
|
||||
Run `claw --help` for usage."
|
||||
);
|
||||
eprintln!("[error-kind: {kind}]\nerror: {message}\n\nRun `claw --help` for usage.");
|
||||
}
|
||||
}
|
||||
std::process::exit(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue