mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-17 10:23:02 +00:00
chore: prefix warn and error messages
This commit is contained in:
@@ -89,16 +89,16 @@ namespace con
|
|||||||
void _warn_internal(const std::string& str)
|
void _warn_internal(const std::string& str)
|
||||||
{
|
{
|
||||||
if (globalUseColor)
|
if (globalUseColor)
|
||||||
std::cout << std::format("\x1B[33m{}\x1B[0m\n", str);
|
std::cout << std::format("\x1B[33mWARN: {}\x1B[0m\n", str);
|
||||||
else
|
else
|
||||||
std::cout << std::format("{}\n", str);
|
std::cout << std::format("WARN: {}\n", str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _error_internal(const std::string& str)
|
void _error_internal(const std::string& str)
|
||||||
{
|
{
|
||||||
if (globalUseColor)
|
if (globalUseColor)
|
||||||
std::cerr << std::format("\x1B[31m{}\x1B[0m\n", str);
|
std::cerr << std::format("\x1B[31mERROR: {}\x1B[0m\n", str);
|
||||||
else
|
else
|
||||||
std::cerr << std::format("{}\n", str);
|
std::cerr << std::format("ERROR: {}\n", str);
|
||||||
}
|
}
|
||||||
} // namespace con
|
} // namespace con
|
||||||
|
|||||||
Reference in New Issue
Block a user