This commit is contained in:
Georg Hagen
2025-05-23 00:48:15 +02:00
parent 3d56c6a410
commit fb1c52265a

View File

@@ -50,7 +50,7 @@ namespace
header.magic -= '0';
if (header.magic < 1 || header.magic > 6)
{
throw std::runtime_error("Unsupported magic number: P" + (header.magic + '0'));
throw std::runtime_error(std::string("Unsupported format: P") + std::to_string(header.magic));
}
MaybeSkipComments(stream);
@@ -165,7 +165,7 @@ namespace OpenVulkano::Image
}
else
{
throw std::runtime_error("Unsupported format: P" + (header.magic + '0'));
throw std::runtime_error(std::string("Unsupported format: P") + std::to_string(header.magic));
}
if (header.magic == 1 || header.magic == 2 || header.magic == 4 || header.magic == 5)