1
0
Fork 0
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:
Steffen Vogel 2019-03-22 13:45:04 +01:00
parent cd3200e42a
commit 116ef7f153
2 changed files with 8 additions and 1 deletions

View file

@ -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());
}
}

View file

@ -187,7 +187,7 @@ int main(int argc, char *argv[])
return 0;
}
catch (RuntimeError &e) {
catch (std::runtime_error &e) {
logger->error("{}", e.what());
}
}