Skip to content

Commit 87b6cf5

Browse files
committed
engine: Improve error handling of invalid triggers
1 parent b9aafa8 commit 87b6cf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/src/simulation.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ StateId SimulationMachine::Start::impl(SimulationContext& ctx) {
744744
fable::pretty_print(e, s);
745745
logger()->error("> Message:\n {}", s.str());
746746
return ABORT;
747+
} catch (cloe::TriggerError& e) {
748+
logger()->error("Error inserting trigger ({}): {}", e.what(), c.to_json().dump());
749+
return ABORT;
747750
}
748751
}
749752

0 commit comments

Comments
 (0)