summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-05-16 12:03:33 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-05-16 12:03:33 (GMT)
commit3305444946481c09a239735b3b8f6ca92f1ed38f (patch)
tree5e96558fd14ea6f1fea7811f79519051d5826c0c /src
parent42d1c9715be3865776b2047b3c1e8c8177d492c0 (diff)
downloaduscxml-3305444946481c09a239735b3b8f6ca92f1ed38f.zip
uscxml-3305444946481c09a239735b3b8f6ca92f1ed38f.tar.gz
uscxml-3305444946481c09a239735b3b8f6ca92f1ed38f.tar.bz2
Do not hide exception thrown when invoking
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/interpreter/FastMicroStep.cpp3
1 files changed, 3 insertions, 0 deletions
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 (...) {
}
}