Removed a redundant error message from kiwix-serve

The error message about failing to open the specified port was produced both
by kiwix-tools/src/server/kiwix-serve.cpp and by the InternalServer
constructor (in libkiwix/src/server/internalServer.cpp).
pull/485/head
karandeeppotato 5 years ago
parent 71e065312f
commit 7a3f77dbf2

@ -258,10 +258,6 @@ int main(int argc, char** argv)
server.setBlockExternalLinks(blockExternalLinks);
if (! server.start()) {
cerr << "Unable to instantiate the HTTP daemon. The port " << serverPort
<< " is maybe already occupied or need more permissions to be open. "
"Please try as root or with a port number higher or equal to 1024."
<< endl;
exit(1);
}

Loading…
Cancel
Save