Check for invalid component in sustainer

This commit is contained in:
SiboVG 2023-04-08 23:46:11 +02:00
parent 8cccf49a8f
commit fa9613923f
2 changed files with 3 additions and 0 deletions

View File

@ -1414,6 +1414,7 @@ RASAeroExport.error29 = Boattail length may not be zero.
RASAeroExport.error30 = Boattail rear diameter may not be zero.
RASAeroExport.error31 = Stage '%s' can only contain a body tube (incl. shoulder transition), ignoring other %d component(s).
RASAeroExport.error32 = Boattails can only be added to the last stage.
RASAeroExport.error33 = Invalid component '%s' in sustainer stage.
! SaveAsFileChooser
SaveAsFileChooser.illegalFilename.title = Illegal filename

View File

@ -113,6 +113,8 @@ public class RocketDesignDTO {
} else {
addExternalPart(new TransitionDTO((Transition) component, warnings, errors));
}
} else {
throw new RASAeroExportException(String.format(trans.get("RASAeroExport.error33"), component.getComponentName()));
}
} catch (RASAeroExportException e) {
errors.add(e.getMessage());