mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Show error if the upload failed
Contributes to issue CURA-8609.
This commit is contained in:
parent
ffee4a2443
commit
ffd3277854
3 changed files with 23 additions and 5 deletions
|
@ -79,9 +79,11 @@ class UploadMaterialsJob(Job):
|
|||
if error is not None:
|
||||
Logger.error(f"Failed to upload material archive: {error}")
|
||||
self.setResult(self.Result.FAILED)
|
||||
return
|
||||
self.setResult(self.Result.SUCCESS)
|
||||
self.uploadCompleted.emit()
|
||||
else:
|
||||
self.setResult(self.Result.SUCCESS)
|
||||
self.uploadCompleted.emit(self.getResult())
|
||||
|
||||
def onError(self, reply: "QNetworkReply", error: Optional["QNetworkReply.NetworkError"]):
|
||||
pass # TODO: Handle errors.
|
||||
Logger.error(f"Failed to upload material archive: {error}")
|
||||
self.setResult(self.Result.FAILED)
|
||||
self.uploadCompleted.emit(self.getResult())
|
Loading…
Add table
Add a link
Reference in a new issue