1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node: rely on exceptions for error reporting

This commit is contained in:
Steffen Vogel 2019-01-21 22:12:12 +01:00
parent a374acb499
commit b6b6e8dfb6

View file

@ -174,16 +174,12 @@ int main(int argc, char *argv[])
if (ret)
throw RuntimeError("Failed to verify configuration");
ret = sn.start();
if (ret)
throw RuntimeError("Failed to start super node");
sn.start();
while (!stop)
sn.run();
ret = sn.stop();
if (ret)
throw RuntimeError("Failed to stop super node");
sn.stop();
logger->info(CLR_GRN("Goodbye!"));