mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 06:33:16 +08:00
Add logging if the status code of toolbox request is not 200
This commit is contained in:
parent
2cd6f6a834
commit
662dd80a1d
@ -649,6 +649,7 @@ class Toolbox(QObject, Extension):
|
|||||||
Logger.log("w", "Received invalid JSON for %s.", response_type)
|
Logger.log("w", "Received invalid JSON for %s.", response_type)
|
||||||
break
|
break
|
||||||
else:
|
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.setViewPage("errored")
|
||||||
self.resetDownload()
|
self.resetDownload()
|
||||||
elif reply.operation() == QNetworkAccessManager.PutOperation:
|
elif reply.operation() == QNetworkAccessManager.PutOperation:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user