From 08fd1d4248225e0809b5c5723ffce79753d8b40c Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 12 Oct 2022 17:51:32 +0200 Subject: [PATCH] in CATCH_ENTRY_CUSTOM custom_code moved before error logging --- contrib/epee/include/misc_helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/epee/include/misc_helpers.h b/contrib/epee/include/misc_helpers.h index dd3067c8..fb990e8a 100644 --- a/contrib/epee/include/misc_helpers.h +++ b/contrib/epee/include/misc_helpers.h @@ -54,14 +54,14 @@ catch(const std::exception& ex) \ { \ (void)(ex); \ - LOG_ERROR("Exception at [" << location << "], what=" << ex.what()); \ custom_code; \ + LOG_ERROR("Exception at [" << location << "], what=" << ex.what()); \ return return_val; \ } \ catch(...) \ { \ - LOG_ERROR("Exception at [" << location << "], generic exception \"...\""); \ custom_code; \ + LOG_ERROR("Exception at [" << location << "], generic exception \"...\""); \ return return_val; \ } #define CATCH_ENTRY(location, return_val) CATCH_ENTRY_CUSTOM(location, (void)0, return_val)