From 60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 19 Jun 2015 03:26:02 +0300 Subject: fix stderr output in executables --- test/decrypt_block_aes.cpp | 5 +++++ test/encrypt_block_aes.cpp | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'test') 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"; -- cgit v1.2.3