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 --- examples/aes256ctr.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/aes256ctr.cpp') diff --git a/examples/aes256ctr.cpp b/examples/aes256ctr.cpp index 1431992..9827e79 100644 --- a/examples/aes256ctr.cpp +++ b/examples/aes256ctr.cpp @@ -41,6 +41,11 @@ int main() dump_decrypted(decrypted); dump_next_iv(next_iv); } + catch (const aesni::Error& e) + { + std::cerr << e; + return 1; + } catch (const std::exception& e) { std::cerr << e.what() << "\n"; -- cgit v1.2.3