error message in set_ssl_option() corrected

This commit is contained in:
valenok 2010-08-30 17:56:43 +01:00
parent b1f973b62b
commit 68dde1b7b1

View File

@ -3196,8 +3196,7 @@ static int set_ports_option(struct mg_context *ctx) {
success = 0;
} else if (is_ssl && ctx->ssl_ctx == NULL) {
(void) closesocket(sock);
cry(fc(ctx), "cannot add SSL socket, please specify "
"-ssl_cert option BEFORE -ports option");
cry(fc(ctx), "Cannot add SSL socket, is -ssl_cert option set?");
success = 0;
} else {
listener->sock = sock;