Added map name if not found
This commit is contained in:
parent
78476f6b37
commit
416d4c90e2
|
@ -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()};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue