Check for invalid component in sustainer
This commit is contained in:
parent
8cccf49a8f
commit
fa9613923f
@ -1414,6 +1414,7 @@ RASAeroExport.error29 = Boattail length may not be zero.
|
|||||||
RASAeroExport.error30 = Boattail rear diameter 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.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.error32 = Boattails can only be added to the last stage.
|
||||||
|
RASAeroExport.error33 = Invalid component '%s' in sustainer stage.
|
||||||
|
|
||||||
! SaveAsFileChooser
|
! SaveAsFileChooser
|
||||||
SaveAsFileChooser.illegalFilename.title = Illegal filename
|
SaveAsFileChooser.illegalFilename.title = Illegal filename
|
||||||
|
@ -113,6 +113,8 @@ public class RocketDesignDTO {
|
|||||||
} else {
|
} else {
|
||||||
addExternalPart(new TransitionDTO((Transition) component, warnings, errors));
|
addExternalPart(new TransitionDTO((Transition) component, warnings, errors));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
throw new RASAeroExportException(String.format(trans.get("RASAeroExport.error33"), component.getComponentName()));
|
||||||
}
|
}
|
||||||
} catch (RASAeroExportException e) {
|
} catch (RASAeroExportException e) {
|
||||||
errors.add(e.getMessage());
|
errors.add(e.getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user