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:
Marco Trevisan (Treviño)
2020-02-11 02:29:13 +01:00
committed by Bastien Nocera
parent 04829ed39f
commit f4ee2f86a3

View File

@ -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;