mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-12 15:58:28 -05:00
recover from filesystem exception when dumping
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "AssetDumperRawFile.h"
|
||||
|
||||
#include <format>
|
||||
#include <stdexcept>
|
||||
#include <zlib.h>
|
||||
|
||||
@ -49,7 +50,7 @@ void AssetDumperRawFile::DumpAsset(AssetDumpingContext& context, XAssetInfo<RawF
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("Inflate failed for dumping rawfile '%s'\n", rawFile->name);
|
||||
std::cerr << std::format("Inflate failed when attempting to dump rawfile '{}'\n", rawFile->name);
|
||||
inflateEnd(&zs);
|
||||
return;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "AssetDumperRawFile.h"
|
||||
|
||||
#include <format>
|
||||
#include <stdexcept>
|
||||
#include <zlib.h>
|
||||
|
||||
@ -49,7 +50,7 @@ void AssetDumperRawFile::DumpAsset(AssetDumpingContext& context, XAssetInfo<RawF
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
std::cerr << "Inflate failed when attempting to dump rawfile " << rawFile->name << "\n";
|
||||
std::cerr << std::format("Inflate failed when attempting to dump rawfile '{}'\n", rawFile->name);
|
||||
inflateEnd(&zs);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user