Terminate the campaign server properly when a network error occurs.
This commit is contained in:
parent
191fa72c60
commit
138d6c43c0
1 changed files with 3 additions and 0 deletions
|
@ -578,6 +578,9 @@ int main(int argc, char**argv)
|
|||
} catch(io_exception& /*e*/) {
|
||||
std::cerr << "File I/O error\n";
|
||||
return 2;
|
||||
} catch(network::error& e) {
|
||||
std::cerr << "Aborted with network error: " << e.message << '\n';
|
||||
return 3;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue