mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Handle data not-found error as verify-no-match
In case we got a data-not-found error, it means that the device has not such prints stored, and thus the verification failed, and there's no need to expose the internal reasons to fprintd clients.
This commit is contained in:
committed by
Benjamin Berg
parent
ec74c849be
commit
0bba073dff
@ -2700,7 +2700,7 @@ class FPrintdVirtualDeviceVerificationTests(FPrintdVirtualDeviceBaseTest):
|
||||
self.assertVerifyError(FPrint.DeviceError.DATA_INVALID, 'verify-unknown-error')
|
||||
|
||||
def test_verify_error_data_not_found(self):
|
||||
self.assertVerifyError(FPrint.DeviceError.DATA_NOT_FOUND, 'verify-unknown-error')
|
||||
self.assertVerifyError(FPrint.DeviceError.DATA_NOT_FOUND, 'verify-no-match')
|
||||
|
||||
def test_verify_error_data_full(self):
|
||||
self.assertVerifyError(FPrint.DeviceError.DATA_FULL, 'verify-unknown-error')
|
||||
|
||||
Reference in New Issue
Block a user