fp-device: add new type FpDeviceError FP_DEVICE_ERROR_DATA_DUPLICATE

This commit is contained in:
boger.wang
2020-06-08 21:47:32 +08:00
parent a4f7293f32
commit e3c009c5b3
2 changed files with 6 additions and 0 deletions

View File

@@ -135,6 +135,10 @@ fpi_device_error_new (FpDeviceError error)
msg = "Print was not found on the devices storage.";
break;
case FP_DEVICE_ERROR_DATA_DUPLICATE:
msg = "This finger has already enrolled, please try a different finger";
break;
default:
g_warning ("Unsupported error, returning general error instead!");
error = FP_DEVICE_ERROR_GENERAL;