From a2d6af35effc0667d2486ff9aa616aeebbc640f4 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Thu, 7 Feb 2019 10:27:38 +0100
Subject: [PATCH] extend message in case of negative brake power

---
 VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs
index e8d44cb611..e0306f1b0c 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Brakes.cs
@@ -72,7 +72,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 			}
 
 			if (!dryRun && BrakePower < 0) {
-				throw new VectoSimulationException("Negative Braking Power is not allowed!");
+				throw new VectoSimulationException("Negative Braking Power is not allowed! P_br: {0}", BrakePower);
 			}
 			CurrentState.SetState(outTorque + brakeTorque, outAngularVelocity, outTorque, outAngularVelocity);
 
-- 
GitLab