always print the full error message
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
shimun 2020-08-30 17:09:57 +02:00
parent 04d0d60fb3
commit ee28f87148
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -21,10 +21,7 @@ mod util;
fn main() -> Fido2LuksResult<()> { fn main() -> Fido2LuksResult<()> {
match run_cli() { match run_cli() {
Err(e) => { Err(e) => {
#[cfg(debug_assertions)]
eprintln!("{:?}", e); eprintln!("{:?}", e);
#[cfg(not(debug_assertions))]
eprintln!("{}", e);
exit(e.exit_code()) exit(e.exit_code())
} }
_ => exit(0), _ => exit(0),