mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
catch std::runtime_error
This commit is contained in:
parent
cd3200e42a
commit
116ef7f153
2 changed files with 8 additions and 1 deletions
|
@ -93,6 +93,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
Logger logger = logging.get("hook");
|
||||
|
||||
try {
|
||||
|
||||
struct pool p = { .state = STATE_DESTROYED };
|
||||
struct hook h = { .state = STATE_DESTROYED };
|
||||
struct io io = { .state = STATE_DESTROYED };
|
||||
|
@ -279,4 +281,9 @@ stop: sent = io_print(&io, smps, send);
|
|||
logger->info(CLR_GRN("Goodbye!"));
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
catch (std::runtime_error &e) {
|
||||
logger->error("{}", e.what());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -187,7 +187,7 @@ int main(int argc, char *argv[])
|
|||
return 0;
|
||||
|
||||
}
|
||||
catch (RuntimeError &e) {
|
||||
catch (std::runtime_error &e) {
|
||||
logger->error("{}", e.what());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue