Skip to content

Commit 11f09d8

Browse files
committed
genmc/api: Use returned value for handleExecutionEnd()
1 parent b5a7b4b commit 11f09d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

genmc-sys/cpp/src/MiriInterface/Exploration.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ void MiriGenmcShim::handle_execution_start() {
6868
}
6969

7070
auto MiriGenmcShim::handle_execution_end() -> std::unique_ptr<std::string> {
71-
// FIXME(genmc): add error handling once GenMC returns an error here.
72-
GenMCDriver::handleExecutionEnd();
73-
return {};
71+
auto ret = GenMCDriver::handleExecutionEnd();
72+
return ret.has_value() ? format_error(*ret) : nullptr;
7473
}
7574

7675
/**** Blocking instructions ****/

0 commit comments

Comments
 (0)