Skip to content

Commit

Permalink
added throw statements to avoidswallowing errors; addresses #85 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwm authored Dec 26, 2021
1 parent 65b7e24 commit 04f5a6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Google.Authenticator/TwoFactorAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ private static string GenerateQrCodeUrl(int qrPixelsPerModule, string provisionU
" https://github.com/codebude/QRCoder/issues/227",
e);
}
else
{
throw;
}
}
catch (System.Runtime.InteropServices.ExternalException e)
{
Expand All @@ -112,6 +116,10 @@ private static string GenerateQrCodeUrl(int qrPixelsPerModule, string provisionU
" should be set to a value of 10 or less for optimal results.",
e);
}
else
{
throw;
}
}

return qrCodeUrl;
Expand Down

0 comments on commit 04f5a6b

Please sign in to comment.