Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 09d339cc authored by Harald Martini's avatar Harald Martini
Browse files

added error message if axle gear is required but missing

parent 8ef743d9
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -945,7 +945,11 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.DeclarationMode.CompletedBusRun
protected virtual bool AxleGearRequired()
{
return PrimaryVehicle.ArchitectureID != ArchitectureID.E4;
var req = PrimaryVehicle.ArchitectureID != ArchitectureID.E4;
if (req && PrimaryVehicle.Components.AxleGearInputData == null) {
throw new VectoException("Axlegear required");
}
return req;
}
protected override void CreateGearboxAndGearshiftData(VectoRunData runData)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment