From faa4e5347163cdc5e90d3bf7b2f16476a83e4778 Mon Sep 17 00:00:00 2001 From: Luuk Date: Tue, 18 Jun 2024 17:10:13 +0200 Subject: [PATCH] Better error message --- roboteam_ai/src/stp/Tactic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roboteam_ai/src/stp/Tactic.cpp b/roboteam_ai/src/stp/Tactic.cpp index c1617c0ae..4db91f530 100644 --- a/roboteam_ai/src/stp/Tactic.cpp +++ b/roboteam_ai/src/stp/Tactic.cpp @@ -20,7 +20,7 @@ Status Tactic::update(StpInfo const &info) noexcept { (void)status; // return of update is never used, but it is marked [[no-discard]] in the state machine. This cast suppresses that warning. } else { - RTT_ERROR(getName(), "Not all data was present, bad update!") + RTT_ERROR(info.getRobot()->get()->getId(), " Not all data was present, bad update!") return Status::Failure; }