diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-01-30 12:26:54 +0100 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-02-15 11:29:53 +0000 |
commit | 961198b42104ea644580b14e763ec87bda0e966c (patch) | |
tree | b836b56d1c2c33af50631090940eff0941c35c49 /src/plugins/platforms/webgl/qwebglhttpserver.h | |
parent | 5a39420de0bb981be83d988b93ebc70906a4296e (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.h')
-rw-r--r-- | src/plugins/platforms/webgl/qwebglhttpserver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/qwebglhttpserver.h b/src/plugins/platforms/webgl/qwebglhttpserver.h index b374831..3fb382f 100644 --- a/src/plugins/platforms/webgl/qwebglhttpserver.h +++ b/src/plugins/platforms/webgl/qwebglhttpserver.h @@ -58,6 +58,8 @@ public: QIODevice *customRequestDevice(const QString &name); void setCustomRequestDevice(const QString &name, QIODevice *device); + QString errorString() const; + private slots: void clientConnected(); void clientDisconnected(); |