Skip to content

Commit

Permalink
added the native android error message to all rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
NappyPirate committed Nov 19, 2019
1 parent abb82db commit ddb99c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void isSensorAvailable(Promise promise) {
promise.resolve(resultMap);
}
} catch (Exception e) {
promise.reject("Error detecting biometrics availability: " + e.getMessage(), "Error detecting biometrics availability");
promise.reject("Error detecting biometrics availability: " + e.getMessage(), "Error detecting biometrics availability: " + e.getMessage());
}
}

Expand Down Expand Up @@ -172,7 +172,7 @@ public void run() {
.build();
biometricPrompt.authenticate(promptInfo, cryptoObject);
} catch (Exception e) {
promise.reject("Error signing payload: " + e.getMessage(), "Error generating signature");
promise.reject("Error signing payload: " + e.getMessage(), "Error generating signature: " + e.getMessage());
}
}
});
Expand Down Expand Up @@ -204,7 +204,7 @@ public void run() {
.build();
biometricPrompt.authenticate(promptInfo);
} catch (Exception e) {
promise.reject("Error displaying local biometric prompt: " + e.getMessage(), "Error displaying local biometric prompt");
promise.reject("Error displaying local biometric prompt: " + e.getMessage(), "Error displaying local biometric prompt: " + e.getMessage());
}
}
});
Expand All @@ -221,7 +221,7 @@ public void biometricKeysExist(Promise promise) {
resultMap.putBoolean("keysExist", doesBiometricKeyExist);
promise.resolve(resultMap);
} catch (Exception e) {
promise.reject("Error checking if biometric key exists", "Error checking if biometric key exists");
promise.reject("Error checking if biometric key exists: " + e.getMessage(), "Error checking if biometric key exists: " + e.getMessage());
}
}

Expand Down

0 comments on commit ddb99c1

Please sign in to comment.