2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-03-16 09:53:04 +00:00

chore: prefix warn and error messages

This commit is contained in:
Jan Laupetin
2026-03-15 23:06:56 +01:00
parent 3da04f8092
commit 58ab46413a

View File

@@ -89,16 +89,16 @@ namespace con
void _warn_internal(const std::string& str)
{
if (globalUseColor)
std::cout << std::format("\x1B[33m{}\x1B[0m\n", str);
std::cout << std::format("\x1B[33mWARN: {}\x1B[0m\n", str);
else
std::cout << std::format("{}\n", str);
std::cout << std::format("WARN: {}\n", str);
}
void _error_internal(const std::string& str)
{
if (globalUseColor)
std::cerr << std::format("\x1B[31m{}\x1B[0m\n", str);
std::cerr << std::format("\x1B[31mERROR: {}\x1B[0m\n", str);
else
std::cerr << std::format("{}\n", str);
std::cerr << std::format("ERROR: {}\n", str);
}
} // namespace con