Print file extension when not recognized

This commit is contained in:
Chris Thrasher 2023-10-20 18:05:02 -05:00
parent bb1a465e50
commit fb873548b6

View File

@ -269,6 +269,10 @@ bool ImageLoader::saveImageToFile(const std::filesystem::path& filename,
if (stbi_write_jpg(filename.string().c_str(), convertedSize.x, convertedSize.y, 4, pixels.data(), 90))
return true;
}
else
{
err() << "Image file extension " << extension << " not supported\n";
}
}
err() << "Failed to save image\n" << formatDebugPathInfo(filename) << std::endl;