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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user