Blob Blame History Raw
From 619666513c0250a96a5214fd8a00cc4d69c4d6cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
Date: Thu, 16 Jan 2020 19:47:45 +0100
Subject: [PATCH 181/181] synaptics: Report a verify complete error on
 unexpected result

---
 libfprint/drivers/synaptics/synaptics.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
index 3f79e4b..227e406 100644
--- a/libfprint/drivers/synaptics/synaptics.c
+++ b/libfprint/drivers/synaptics/synaptics.c
@@ -645,7 +645,12 @@ verify_msg_cb (FpiDeviceSynaptics *self,
       else
         {
           fp_warn ("Verify has failed: %d", resp->result);
-          fpi_device_verify_complete (device, FPI_MATCH_FAIL, NULL, NULL);
+          fpi_device_verify_complete (device,
+                                      FPI_MATCH_ERROR,
+                                      NULL,
+                                      fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
+                                                                "Unexpected result from device %d",
+                                                                resp->result));
         }
       break;
 
-- 
2.24.1