summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/webgl/qwebglhttpserver.cpp
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2018-01-30 12:26:54 +0100
committerJesus Fernandez <Jesus.Fernandez@qt.io>2018-02-15 11:29:53 +0000
commit961198b42104ea644580b14e763ec87bda0e966c (patch)
treeb836b56d1c2c33af50631090940eff0941c35c49 /src/plugins/platforms/webgl/qwebglhttpserver.cpp
parent5a39420de0bb981be83d988b93ebc70906a4296e (diff)
Show more information when the HTTP server fails to initialize
When the HTTP server fails to initialize a simple message was shown in the terminal. This patch adds the error string from the QTcpServer to give more information about the problem. Change-Id: Ic52d4a78991e1c5a20f2712ca6cbbdd0738d47e0 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/plugins/platforms/webgl/qwebglhttpserver.cpp')
-rw-r--r--src/plugins/platforms/webgl/qwebglhttpserver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/qwebglhttpserver.cpp b/src/plugins/platforms/webgl/qwebglhttpserver.cpp
index e932abf..133163e 100644
--- a/src/plugins/platforms/webgl/qwebglhttpserver.cpp
+++ b/src/plugins/platforms/webgl/qwebglhttpserver.cpp
@@ -140,6 +140,12 @@ void QWebGLHttpServer::setCustomRequestDevice(const QString &name, QIODevice *de
d->customRequestDevices.insert(name, device);
}
+QString QWebGLHttpServer::errorString() const
+{
+ Q_D(const QWebGLHttpServer);
+ return d->server.errorString();
+}
+
void QWebGLHttpServer::clientConnected()
{
Q_D(QWebGLHttpServer);