Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 3ee7f489 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

corrected error message

parent f8c5aa1a
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ Imports System.Text
Private DEVpage As TabPage
Private CmDEVitem As ListViewItem
Private CheckLock As Boolean
Public CheckLock As Boolean
Private GENchecked As Integer
Private DRIchecked As Integer
Private GENcheckAllLock As Boolean
......
......@@ -121,8 +121,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
axleTorque = gear.Value.LossMap.GetOutTorque(angularVelocity, inTorque);
} catch (VectoException ex) {
throw new VectoException(
string.Format("Interpolation of LossMap failed for Gear {0} with torque={1} and angularSpeed={2}", gear,
inTorque, angularVelocity), ex);
string.Format("Interpolation of LossMap failed for Gear {0} with torque={1} and angularSpeed={2}",
gear.Key, inTorque, angularVelocity.ConvertTo().Rounds.Per.Minute), ex);
}
var axleAngularVelocity = angularVelocity / gear.Value.Ratio;
......@@ -130,8 +130,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
gearboxData.AxleGearData.LossMap.GetOutTorque(axleAngularVelocity, axleTorque);
} catch (VectoException ex) {
throw new VectoException(
string.Format("Interpolation of LossMap failed for AxleGear with torque={1} and angularSpeed={2}", axleTorque,
axleAngularVelocity), ex);
string.Format("Interpolation of LossMap failed for AxleGear with torque={0} and angularSpeed={1}",
axleTorque, axleAngularVelocity.ConvertTo().Rounds.Per.Minute), ex);
}
}
}
......
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