From 3eab8637adc3f17f10de0d9229445d6214e5f01e Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Tue, 29 Aug 2017 12:02:17 -0400 Subject: SERVER-30874 Don't ignore errors in scope guard / ON_BLOCK_EXIT --- src/mongo/util/scopeguard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mongo/util/scopeguard.h') diff --git a/src/mongo/util/scopeguard.h b/src/mongo/util/scopeguard.h index 167db24c9b5..a5701f6347c 100644 --- a/src/mongo/util/scopeguard.h +++ b/src/mongo/util/scopeguard.h @@ -15,6 +15,8 @@ #ifndef LOKI_SCOPEGUARD_H_ #define LOKI_SCOPEGUARD_H_ +#include + #include "mongo/platform/compiler.h" namespace mongo { @@ -98,6 +100,7 @@ protected: try { j.Execute(); } catch (...) { + std::terminate(); } } -- cgit v1.2.1