summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/Nonce.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenId/Nonce.cs')
-rw-r--r--src/DotNetOpenId/Nonce.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenId/Nonce.cs b/src/DotNetOpenId/Nonce.cs
index b86b4e8..3876fde 100644
--- a/src/DotNetOpenId/Nonce.cs
+++ b/src/DotNetOpenId/Nonce.cs
@@ -95,7 +95,8 @@ namespace DotNetOpenId {
internal void Consume(INonceStore store) {
if (IsExpired)
- throw new OpenIdException(Strings.ExpiredNonce);
+ throw new OpenIdException(string.Format(CultureInfo.CurrentCulture,
+ Strings.ExpiredNonce, ExpirationDate, DateTime.UtcNow));
// We could store unused nonces and remove them as they are used, or
// we could store used nonces and check that they do not previously exist.