Skip to content

Commit

Permalink
20996: Improves version incompatibility error message (#186)
Browse files Browse the repository at this point in the history
Co-authored-by: howsohazard <143410553+howsohazard@users.noreply.github.com>
  • Loading branch information
fulpm and howsohazard authored Jul 22, 2024
1 parent 98403a1 commit 29e1c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Amalgam/AssetManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,13 @@ std::pair<std::string, bool> AssetManager::ValidateVersionAgainstAmalgam(std::st
(major == AMALGAM_VERSION_MAJOR && minor > AMALGAM_VERSION_MINOR) ||
(major == AMALGAM_VERSION_MAJOR && minor == AMALGAM_VERSION_MINOR && patch > AMALGAM_VERSION_PATCH))
{
std::string err_msg = "Reading newer version not supported";
std::string err_msg = "Parsing Amalgam that is more recent than the current version is not supported";
std::cerr << err_msg << ", version=" << version << std::endl;
return std::make_pair(err_msg, false);
}
else if(AMALGAM_VERSION_MAJOR > major)
{
std::string err_msg = "Newer Amalgam cannot read older versions";
std::string err_msg = "Parsing Amalgam that is older than the current major version is not supported";
std::cerr << err_msg << ", version=" << version << std::endl;
return std::make_pair(err_msg, false);
}
Expand Down

0 comments on commit 29e1c6d

Please sign in to comment.