Commit 1ecae1d0 authored by Marco Trevisan's avatar Marco Trevisan
Browse files

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.
parent ba7a45d3
......@@ -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")));
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