diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 60eced34f..653c3279a 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -2415,7 +2415,7 @@ namespace Tango.Integration.Operation if (config == null) config = new AdditionalJobConfiguration(); - await Task.Factory.StartNew(() => + await Task.Factory.StartNew(() => { IColorConverter converter = new DefaultColorConverter(); @@ -2538,6 +2538,11 @@ namespace Tango.Integration.Operation else if (stop.BrushColorSpace == ColorSpaces.Volume) { stop.SetLiquidVolumes(job.Machine.Configuration, job.Rml, processParameters); + + if (stop.IsLiquidVolumesOutOfRange) + { + throw new InvalidOperationException($"Liquid volumes exceeds the maximum allowed range for stop '{stop.StopIndex}' of segment '{stop.Segment.SegmentIndex}'."); + } } else { |
