print error log on failed simulation
This commit is contained in:
parent
009ee509d5
commit
dd377a4f0f
2 changed files with 6 additions and 1 deletions
|
|
@ -71,12 +71,14 @@ void LogParser::parse_error([[maybe_unused]]const std::string& line) {
|
||||||
// actsim actually outputs everything on stdout
|
// actsim actually outputs everything on stdout
|
||||||
// Only the warnings in the beginning are on stderr.
|
// Only the warnings in the beginning are on stderr.
|
||||||
|
|
||||||
//this->artifact->add_err_output(line);
|
this->artifact->add_err_output(line);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogParser::finalize() {
|
void LogParser::finalize() {
|
||||||
|
|
||||||
|
this->artifact->clear_logs();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
So the only way to do this cleanly is to make sure that either
|
So the only way to do this cleanly is to make sure that either
|
||||||
- the model has not sent all tokens yet -> deadlock
|
- the model has not sent all tokens yet -> deadlock
|
||||||
|
|
|
||||||
|
|
@ -506,6 +506,9 @@ std::unique_ptr<OutputType> Worker::perform_task(std::unique_ptr<InputType>& tas
|
||||||
|
|
||||||
if (exit_code != 0) {
|
if (exit_code != 0) {
|
||||||
std::cerr << "SIMULATION EXITED ABNORMALLY!" << std::endl;
|
std::cerr << "SIMULATION EXITED ABNORMALLY!" << std::endl;
|
||||||
|
for (auto&& line : result->get_content().second) {
|
||||||
|
std::cerr << line << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue