summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Radomski <sradomski@mintwerk.de>2016-04-28 08:02:51 (GMT)
committerStefan Radomski <sradomski@mintwerk.de>2016-04-28 08:02:51 (GMT)
commit78104373cb65516bddd2328d8955dda6b8df8a23 (patch)
tree5c085573f6065831abc4937928c9229d518148b0
parentb73596b4f44942931d113036566336608d5a4f65 (diff)
downloaduscxml-78104373cb65516bddd2328d8955dda6b8df8a23.zip
uscxml-78104373cb65516bddd2328d8955dda6b8df8a23.tar.gz
uscxml-78104373cb65516bddd2328d8955dda6b8df8a23.tar.bz2
Fixed duplicate error.execution with missing DOM support in Lua
-rw-r--r--src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp b/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp
index 63314e1..c01d4d1 100644
--- a/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp
+++ b/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp
@@ -267,7 +267,10 @@ void LuaDataModel::setEvent(const Event& event) {
ERROR_EXECUTION_THROW(e.what());
}
} else {
- ERROR_EXECUTION_THROW("No DOM support in Lua datamodel");
+ // some error events have a dom node attached - do not throw for them
+ if (!nameMatch("error.*", event.name)) {
+ ERROR_EXECUTION_THROW("No DOM support in Lua datamodel");
+ }
}
} else if (event.content.length() > 0) {
// _event.data is a string or JSON