print error msg
This commit is contained in:
parent
f6627d887b
commit
11ac32d3f1
10
src/lib.rs
10
src/lib.rs
@ -166,10 +166,12 @@ impl PamServiceModule for PamFido2Luks {
|
||||
args,
|
||||
) {
|
||||
Ok(_) => PamError::SUCCESS,
|
||||
Err(e) => match e {
|
||||
//TODO: output more detailed error
|
||||
_ => PamError::AUTH_ERR,
|
||||
},
|
||||
Err(e) => {
|
||||
eprintln!("{}", e);
|
||||
match e {
|
||||
_ => PamError::AUTH_ERR,
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
PamError::AUTH_ERR
|
||||
|
Loading…
x
Reference in New Issue
Block a user