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

fix error handling and fix error message #1127

Merged
merged 2 commits into from
Sep 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("ignature validation failed");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typoと思われます

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました。

throw;
}

Expand Down