Added map name if not found

This commit is contained in:
Guillermo 2023-06-02 16:37:27 +02:00 committed by bernat
parent 78476f6b37
commit 416d4c90e2
2 changed files with 4 additions and 2 deletions

View File

@ -139,7 +139,6 @@ namespace detail {
} }
} }
EpisodeProxy Simulator::GetCurrentEpisode() { EpisodeProxy Simulator::GetCurrentEpisode() {
log_warning("GetCurrentEpisode");
GetReadyCurrentEpisode(); GetReadyCurrentEpisode();
return EpisodeProxy{shared_from_this()}; return EpisodeProxy{shared_from_this()};
} }

View File

@ -307,7 +307,10 @@ void FCarlaServer::FPimpl::BindActions()
if(!Episode->LoadNewEpisode(cr::ToFString(map_name), reset_settings)) 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<void>::Success(); return R<void>::Success();