diff --git a/engines/ep/src/monotonic.h b/engines/ep/src/monotonic.h index ccf2c3ef1c..e5b37a9586 100644 --- a/engines/ep/src/monotonic.h +++ b/engines/ep/src/monotonic.h @@ -19,6 +19,7 @@ #include "comparators.h" +#include #include #include #include @@ -47,11 +48,11 @@ struct ThrowExceptionPolicy { void nonMonotonic(const T& curValue, const T& newValue) { using std::to_string; - throw std::logic_error( + cb::throwWithTrace(std::logic_error( std::string("Monotonic<") + typeid(T).name() + "> (" + label + ") invariant failed: new value (" + to_string(newValue) + - ") breaks invariant on current value (" + - to_string(curValue) + ")"); + ") breaks invariant on current value (" + to_string(curValue) + + ")")); } /**