Browse Source

Add logging if the status code of toolbox request is not 200

Jaime van Kessel 6 years ago
parent
commit
662dd80a1d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/Toolbox/src/Toolbox.py

+ 1 - 0
plugins/Toolbox/src/Toolbox.py

@@ -649,6 +649,7 @@ class Toolbox(QObject, Extension):
                             Logger.log("w", "Received invalid JSON for %s.", response_type)
                             break
                     else:
+                        Logger.log("w", "Unable to connect with the server, we got a response code %s while trying to connect to %s", reply.attribute(QNetworkRequest.HttpStatusCodeAttribute), reply.url())
                         self.setViewPage("errored")
                         self.resetDownload()
         elif reply.operation() == QNetworkAccessManager.PutOperation: