Better AP error message when missing image present

This commit is contained in:
mnaumov
2021-05-06 15:48:39 -07:00
parent abce15ea20
commit 550d935b82
2 changed files with 6 additions and 2 deletions
@@ -739,7 +739,9 @@ namespace ImageProcessing
if (preset == nullptr)
{
AZ_Assert(false, "preset should always exist");
AZStd::string uuidStr;
textureSettings.m_preset.ToString(uuidStr);
AZ_Assert(false, "%s cannot find image preset with ID %s.", imageFilePath.c_str(), uuidStr.c_str());
return nullptr;
}