From 3305444946481c09a239735b3b8f6ca92f1ed38f Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Tue, 16 May 2017 14:03:33 +0200 Subject: Do not hide exception thrown when invoking --- src/uscxml/interpreter/FastMicroStep.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uscxml/interpreter/FastMicroStep.cpp b/src/uscxml/interpreter/FastMicroStep.cpp index 4f89e1e..2a95c9c 100644 --- a/src/uscxml/interpreter/FastMicroStep.cpp +++ b/src/uscxml/interpreter/FastMicroStep.cpp @@ -725,6 +725,9 @@ InterpreterState FastMicroStep::step(size_t blockMs) { for (auto invIter = USCXML_GET_STATE(i).invoke.begin(); invIter != USCXML_GET_STATE(i).invoke.end(); invIter++) { try { _callbacks->invoke(*invIter); + } catch (ErrorEvent e) { + LOG(_callbacks->getLogger(), USCXML_WARN) << e; + // TODO: Shall we deliver the event into the interpreter runtime? } catch (...) { } } -- cgit v0.12