mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-12-06 03:07:48 +00:00
chore: update all logging to use centralized logging component
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "XChunkProcessorInflate.h"
|
||||
|
||||
#include "Utils/Logging/Log.h"
|
||||
#include "XChunkException.h"
|
||||
|
||||
#include <format>
|
||||
@@ -26,7 +27,7 @@ size_t XChunkProcessorInflate::Process(unsigned streamNumber, const uint8_t* inp
|
||||
ret = inflate(&stream, Z_FULL_FLUSH);
|
||||
if (ret != Z_STREAM_END)
|
||||
{
|
||||
std::cerr << std::format("inflate of stream failed with error code {}: {}\n", streamNumber, ret, stream.msg);
|
||||
con::error("inflate of stream failed with error code {}: {}", streamNumber, ret, stream.msg);
|
||||
throw XChunkException(std::format("Zone has invalid or unsupported compression: {}", stream.msg));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user