Add presentation name to SliceSettings ValidationErrors
This commit is contained in:
parent
ac9bd834d9
commit
61276cad63
2 changed files with 8 additions and 1 deletions
|
|
@ -234,7 +234,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
if (validationError is SettingsValidationError settingsValidationError)
|
||||
{
|
||||
errorText = "SliceSettings Error".Localize();
|
||||
errorText = string.Format(
|
||||
"{0} {1}",
|
||||
settingsValidationError.PresentationName,
|
||||
validationError.ErrorLevel == ValidationErrorLevel.Error ? "Error".Localize() : "Warning".Localize());
|
||||
|
||||
errorDetails = validationError.Error;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue