aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 03:26:02 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 03:26:02 +0300
commit60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2 (patch)
treecb0d3bf6ea30f7ebe5091701c506168e38829a3f /test
parentadd call stacks to errors (diff)
downloadaes-tools-60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2.tar.gz
aes-tools-60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2.zip
fix stderr output in executables
Diffstat (limited to '')
-rw-r--r--test/decrypt_block_aes.cpp5
-rw-r--r--test/encrypt_block_aes.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/test/decrypt_block_aes.cpp b/test/decrypt_block_aes.cpp
index ff2d494..3bb8e44 100644
--- a/test/decrypt_block_aes.cpp
+++ b/test/decrypt_block_aes.cpp
@@ -109,6 +109,11 @@ int main(int argc, char** argv)
std::cerr << "Usage error: " << e.what() << "\n";
return 1;
}
+ catch (const aesni::Error& e)
+ {
+ std::cerr << e;
+ return 1;
+ }
catch (const std::exception& e)
{
std::cerr << e.what() << "\n";
diff --git a/test/encrypt_block_aes.cpp b/test/encrypt_block_aes.cpp
index fc56019..6de9288 100644
--- a/test/encrypt_block_aes.cpp
+++ b/test/encrypt_block_aes.cpp
@@ -109,6 +109,11 @@ int main(int argc, char** argv)
std::cerr << "Usage error: " << e.what() << "\n";
return 1;
}
+ catch (const aesni::Error& e)
+ {
+ std::cerr << e;
+ return 1;
+ }
catch (const std::exception& e)
{
std::cerr << e.what() << "\n";