Expand log message when getting no definition when listing error settings

So that someone reading the log gets a clue where the error message occurs and why.

Contributes to issue CURA-3772.
This commit is contained in:
Ghostkeeper 2017-05-08 11:17:37 +02:00
parent 82663a727f
commit e19d5411c2
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -279,7 +279,7 @@ class CuraEngineBackend(QObject, Backend):
if definitions:
error_labels.add(definitions[0].label)
else:
Logger.log("w", "Unable to find definition for key: {key}".format(key = key))
Logger.log("w", "When checking settings for errors, unable to find definition for key: {key}".format(key = key))
error_labels = ", ".join(error_labels)
self._error_message = Message(catalog.i18nc("@info:status", "Unable to slice with the current settings. The following settings have errors: {0}".format(error_labels)))