mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Return 'verify-no-match' on cancelled verification
We were returning a 'verify-unknown-error' while we actually know what happened, so better to return a soft operation failure.
This commit is contained in:
committed by
Bastien Nocera
parent
b312a5e540
commit
0e993d92e2
@ -345,6 +345,8 @@ verify_result_to_name (gboolean match, GError *error)
|
||||
*/
|
||||
if (g_error_matches (error, FP_DEVICE_ERROR, FP_DEVICE_ERROR_PROTO))
|
||||
return "verify-disconnect";
|
||||
else if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
return "verify-no-match";
|
||||
|
||||
return "verify-unknown-error";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user