Clarify error message a bit more

The QA engineer was a bit confused by this one. Let's make the language a bit easier.
This commit is contained in:
Ghostkeeper 2018-08-10 13:17:20 +02:00
parent 6924d28ee7
commit f91c696e4b
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -39,12 +39,12 @@ class SendMaterialJob(Job):
try:
remote_materials_list = json.loads(remote_materials_list)
except json.JSONDecodeError:
Logger.log("e", "Current material storage on printer was a corrupted reply.")
Logger.log("e", "Request material storage on printer: I didn't understand the printer's answer.")
return
try:
remote_materials_by_guid = {material["guid"]: material for material in remote_materials_list} #Index by GUID.
except KeyError:
Logger.log("e", "Current material storage on printer was an invalid reply (missing GUIDs).")
Logger.log("e", "Request material storage on printer: Printer's answer was missing GUIDs.")
return
container_registry = ContainerRegistry.getInstance()