diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-06-09 19:26:00 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-06-09 19:26:00 +0700 |
commit | 6d6fb006877101242633b56095b011bcf0046ab3 (patch) | |
tree | 73832d12c061f09ad600abacd662de8d8f5101ba /crypto | |
parent | Fix algorithm name for ChaCha7539Engine (diff) | |
download | BouncyCastle.NET-ed25519-6d6fb006877101242633b56095b011bcf0046ab3.tar.xz |
Write exception message to Console.Err
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/test/src/crypto/examples/DESExample.cs | 7 |
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 |