From 058de6a749f9fe99d12930b76eae95d0667289c1 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 30 Dec 2024 12:03:44 +0100 Subject: [PATCH] simulators add warnings --- tools/simulators.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/simulators.cpp b/tools/simulators.cpp index 3222eff..c939d75 100644 --- a/tools/simulators.cpp +++ b/tools/simulators.cpp @@ -30,10 +30,12 @@ void Simulators::run() { if (this->m_simulators.empty()) { + spdlog::warn("no simulators found"); return; } if (this->m_current_simulator.empty()) { + spdlog::warn("no active simulator"); return; } @@ -45,10 +47,12 @@ void Simulators::stop() { if (this->m_simulators.empty()) { + spdlog::warn("no simulators found"); return; } if (this->m_current_simulator.empty()) { + spdlog::warn("no active simulator"); return; } @@ -59,15 +63,18 @@ void Simulators::switch_simulator(std::string name) { if (this->m_simulators.empty()) { + spdlog::warn("no simulators found"); return; } if (!this->m_current_simulator.empty()) { + spdlog::info("stopping current simulator {} and switching to {}", m_current_simulator, name); this->m_simulators.at(m_current_simulator)->stop(); } if (this->m_simulators.find(name) == this->m_simulators.end()) { + spdlog::warn("simulator {} not found", name); return; }