Log which file caused it to go wrong

Contributes to issue CURA-4243.
This commit is contained in:
Ghostkeeper 2017-11-28 16:15:20 +01:00
parent 56d6664c8c
commit 381d9bf3f1
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -836,7 +836,7 @@ class MachineManager(QObject):
elif container_type == "quality_changes":
new_quality_settings_list = self._determineQualityAndQualityChangesForQualityChanges(quality_name)
else:
Logger.log("e", "Tried to set quality to a container that is not of the right type")
Logger.log("e", "Tried to set quality to a container that is not of the right type: {container_id}".format(container_id = containers[0]["id"]))
return
# Check if it was at all possible to find new settings