mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Throw NoEnrolledPrints on missing finger in gallery
Throw a NoEnrolledPrints error if the requested finger isn't present in the gallery.
This commit is contained in:
committed by
Bastien Nocera
parent
04829ed39f
commit
f4ee2f86a3
@ -914,7 +914,7 @@ static void fprint_device_verify_start(FprintDevice *rdev,
|
|||||||
priv->session->username, &print);
|
priv->session->username, &print);
|
||||||
|
|
||||||
if (!print) {
|
if (!print) {
|
||||||
g_set_error(&error, FPRINT_ERROR, FPRINT_ERROR_INTERNAL,
|
g_set_error(&error, FPRINT_ERROR, FPRINT_ERROR_NO_ENROLLED_PRINTS,
|
||||||
"No such print %d", finger_num);
|
"No such print %d", finger_num);
|
||||||
dbus_g_method_return_error(context, error);
|
dbus_g_method_return_error(context, error);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user