delete: Clear the error in case we ignore it

If we get a `NoEnrolledPrints` error during delete, we don't consider it an
hard error and in such case we proceed to releasing the device, but without
clearing the previously set error first.
This commit is contained in:
Marco Trevisan (Treviño) 2020-02-04 19:56:26 +01:00
parent ba7a45d3f8
commit 1ecae1d014

View file

@ -66,6 +66,7 @@ static void delete_fingerprints(DBusGProxy *dev, const char *username)
exit (1);
} else {
g_print ("No fingerprints to delete on %s\n", g_value_get_string (g_hash_table_lookup (props, "name")));
g_clear_error (&error);
}
} else {
g_print ("Fingerprints deleted on %s\n", g_value_get_string (g_hash_table_lookup (props, "name")));