diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-19 03:26:02 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-19 03:26:02 +0300 |
commit | 60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2 (patch) | |
tree | cb0d3bf6ea30f7ebe5091701c506168e38829a3f /examples/aes256ofb.cpp | |
parent | add call stacks to errors (diff) | |
download | aes-tools-60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2.tar.gz aes-tools-60561b6b6cc1aee1d9a044d5c0cbf75d0312beb2.zip |
fix stderr output in executables
Diffstat (limited to 'examples/aes256ofb.cpp')
-rw-r--r-- | examples/aes256ofb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/aes256ofb.cpp b/examples/aes256ofb.cpp index 3bc7268..1d806aa 100644 --- a/examples/aes256ofb.cpp +++ b/examples/aes256ofb.cpp @@ -43,6 +43,11 @@ int main() return 0; } + catch (const aesni::Error& e) + { + std::cerr << e; + return 1; + } catch (const std::exception& e) { std::cerr << e.what() << "\n"; |