+ more verbose error message in case of HTTP daemon failed start

This commit is contained in:
kelson42 2010-11-02 16:27:25 +00:00
parent 7251ea83d1
commit f3882f19f5

View File

@ -416,7 +416,7 @@ int main(int argc, char **argv) {
MHD_OPTION_END);
if (daemon == NULL) {
cerr << "Unable to instanciate the HTTP daemon."<< endl;
cerr << "Unable to instanciate 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 than 256." << endl;
exit(1);
}