mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-08 12:28:01 +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:
parent
04829ed39f
commit
f4ee2f86a3
1 changed files with 1 additions and 1 deletions
|
|
@ -914,7 +914,7 @@ static void fprint_device_verify_start(FprintDevice *rdev,
|
|||
priv->session->username, &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);
|
||||
dbus_g_method_return_error(context, error);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue