mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Add logging if the status code of toolbox request is not 200
This commit is contained in:
parent
2cd6f6a834
commit
662dd80a1d
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue