From 416d4c90e2c61f720d0e2028eebd6767efb2c33f Mon Sep 17 00:00:00 2001 From: Guillermo Date: Fri, 2 Jun 2023 16:37:27 +0200 Subject: [PATCH] Added map name if not found --- LibCarla/source/carla/client/detail/Simulator.cpp | 1 - .../Plugins/Carla/Source/Carla/Server/CarlaServer.cpp | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/LibCarla/source/carla/client/detail/Simulator.cpp b/LibCarla/source/carla/client/detail/Simulator.cpp index b2992f6d6..ea3ba13d9 100644 --- a/LibCarla/source/carla/client/detail/Simulator.cpp +++ b/LibCarla/source/carla/client/detail/Simulator.cpp @@ -139,7 +139,6 @@ namespace detail { } } EpisodeProxy Simulator::GetCurrentEpisode() { - log_warning("GetCurrentEpisode"); GetReadyCurrentEpisode(); return EpisodeProxy{shared_from_this()}; } diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp index ca3e6b713..b7893d751 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp @@ -307,7 +307,10 @@ void FCarlaServer::FPimpl::BindActions() if(!Episode->LoadNewEpisode(cr::ToFString(map_name), reset_settings)) { - RESPOND_ERROR("map not found"); + FString Str(TEXT("Map '")); + Str += cr::ToFString(map_name); + Str += TEXT("' not found"); + RESPOND_ERROR_FSTRING(Str); } return R::Success();