From 58bb34bb3a854fb4ea3f1daf6ed3c742efb89e1d Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 1 Mar 2019 18:51:01 +0100 Subject: [PATCH 1/1] Yell when there is an exception, not when there isn't --- src/simix/ActorImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index f456507981..1b92ac6b8e 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -280,7 +280,8 @@ void ActorImpl::yield() if (suspended_) { XBT_DEBUG("Hey! I'm suspended."); - xbt_assert(exception_ != nullptr, "Gasp! This exception may be lost by subsequent calls."); + + xbt_assert(exception_ == nullptr, "Gasp! This exception may be lost by subsequent calls."); suspended_ = false; suspend(this); } -- 2.20.1