feat: improve error messages when parsing an info string file fails

This commit is contained in:
Jan
2024-05-12 22:29:40 +02:00
parent 30394e6a4c
commit 5d913acfef
12 changed files with 21 additions and 11 deletions

View File

@ -870,7 +870,7 @@ bool AssetLoaderWeapon::LoadFromRaw(
InfoString infoString;
if (!infoString.FromStream(ObjConstants::INFO_STRING_PREFIX_WEAPON, *file.m_stream))
{
std::cerr << "Failed to read weapon raw file: \"" << fileName << "\"\n";
std::cerr << "Could not parse as info string file: \"" << fileName << "\"\n";
return true;
}