From c11a0bd2abef4c9536432664600ce6b6ed6ccbe4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 15 Jun 2015 01:04:48 +0300 Subject: error handling refactoring + more docs --- utils/cxx/include/aesnixx/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/cxx/include/aesnixx/error.hpp b/utils/cxx/include/aesnixx/error.hpp index db390ea..81e63c6 100644 --- a/utils/cxx/include/aesnixx/error.hpp +++ b/utils/cxx/include/aesnixx/error.hpp @@ -28,7 +28,7 @@ namespace aesni ~ErrorDetailsThrowsInDestructor() { - if (aesni_get_error_code(get()) != AESNI_ERROR_SUCCESS) + if (aesni_is_error(aesni_get_error_code(get()))) { std::vector msg; msg.resize(aesni_format_error(get(), NULL, 0)); -- cgit v1.2.3