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:
parent
a374acb499
commit
b6b6e8dfb6
1 changed files with 2 additions and 6 deletions
|
@ -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!"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue