From f4ee2f86a3ed1c3b78847046d59b4cdf6b529ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 11 Feb 2020 02:29:13 +0100 Subject: [PATCH] device: Throw NoEnrolledPrints on missing finger in gallery Throw a NoEnrolledPrints error if the requested finger isn't present in the gallery. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 33f5ac8..8a3f676 100644 --- a/src/device.c +++ b/src/device.c @@ -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;