Commit f4ee2f86 authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

device: Throw NoEnrolledPrints on missing finger in gallery

Throw a NoEnrolledPrints error if the requested finger isn't present
in the gallery.
parent 04829ed3
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment