diff options
Diffstat (limited to 'examples/httpserver/simple/main.cpp')
-rw-r--r-- | examples/httpserver/simple/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/httpserver/simple/main.cpp b/examples/httpserver/simple/main.cpp index 0bf21e2..1f10553 100644 --- a/examples/httpserver/simple/main.cpp +++ b/examples/httpserver/simple/main.cpp @@ -113,9 +113,9 @@ int main(int argc, char *argv[]) }); const auto port = httpServer.listen(QHostAddress::Any); - if (port == -1) { + if (!port) { qDebug() << QCoreApplication::translate( - "QHttpServerExample", "Could not run on http://127.0.0.1:%1/").arg(port); + "QHttpServerExample", "Server failed to listen on a port."); return 0; } |