summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-06-09 19:26:00 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-06-09 19:26:00 +0700
commit6d6fb006877101242633b56095b011bcf0046ab3 (patch)
tree73832d12c061f09ad600abacd662de8d8f5101ba
parentFix algorithm name for ChaCha7539Engine (diff)
downloadBouncyCastle.NET-ed25519-6d6fb006877101242633b56095b011bcf0046ab3.tar.xz
Write exception message to Console.Err
-rw-r--r--crypto/test/src/crypto/examples/DESExample.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/test/src/crypto/examples/DESExample.cs b/crypto/test/src/crypto/examples/DESExample.cs
index c026d3159..788fd643f 100644
--- a/crypto/test/src/crypto/examples/DESExample.cs
+++ b/crypto/test/src/crypto/examples/DESExample.cs
@@ -247,10 +247,11 @@ namespace Org.BouncyCastle.Crypto.Examples
 				outStr.Flush();
 				outStr.Close();
 			}
-			catch (IOException)
+			catch (IOException closing)
 			{
-			}
-		}
+                Console.Error.WriteLine("exception closing resources: " + closing.Message);
+            }
+        }
 
 		/*
 		* This method performs all the encryption and writes