Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1127 from cocoa-mhlw/fix/500error_when_valid_JWS
Browse files Browse the repository at this point in the history
fix error handling and fix error message
  • Loading branch information
cocoa-dev006 authored Sep 2, 2022
2 parents 28a16ef + 05d484f commit 6024d50
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ private AndroidAttestationStatement ParsePayload(string signedAttestationStateme
catch (ArgumentException)
{
// The token is not in a valid JWS format.
return null;
Logger.LogError("The token is not in a valid JWS format");
throw;
}

// We just want to validate the authenticity of the certificate.
Expand All @@ -135,7 +136,7 @@ private AndroidAttestationStatement ParsePayload(string signedAttestationStateme
catch (ArgumentException)
{
// Signature validation failed.
Logger.LogError("The token is not in a valid JWS format");
Logger.LogError("Signature validation failed");
throw;
}

Expand Down

0 comments on commit 6024d50

Please sign in to comment.