mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
resolves #77: exit noisily on ::bind failure
This commit is contained in:
parent
fd03993744
commit
c0556b871b
@ -502,8 +502,8 @@ kj::Promise<void> Server::handleFdRead(kj::AsyncInputStream* stream, char* buffe
|
||||
}
|
||||
|
||||
void Server::taskFailed(kj::Exception &&exception) {
|
||||
// An unexpected http connection close can cause an exception, so don't re-throw.
|
||||
// TODO: consider re-throwing selected exceptions
|
||||
LLOG(INFO, exception);
|
||||
//kj::throwFatalException(kj::mv(exception));
|
||||
// prettier
|
||||
fprintf(stderr, "fatal: %s\n", exception.getDescription().cStr());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user