File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ class ZSTDCodec : public Codec {
229229 Result<CCtxPtr> CreateCCtx () const {
230230 CCtxPtr cctx{ZSTD_createCCtx (), ZSTD_freeCCtx};
231231 if (cctx == nullptr ) {
232- return Status::IOError (" ZSTD_CCtx create failed: Unknown error " );
232+ return Status::OutOfMemory (" ZSTD_CCtx create failed" );
233233 }
234234 auto ret =
235235 ZSTD_CCtx_setParameter (cctx.get (), ZSTD_c_compressionLevel, compression_level_);
@@ -248,7 +248,7 @@ class ZSTDCodec : public Codec {
248248 Result<DCtxPtr> CreateDCtx () const {
249249 DCtxPtr dctx{ZSTD_createDCtx (), ZSTD_freeDCtx};
250250 if (dctx == nullptr ) {
251- return Status::IOError (" ZSTD_DCtx create failed: Unknown error " );
251+ return Status::OutOfMemory (" ZSTD_DCtx create failed" );
252252 }
253253 for (auto & [key, value] : decompression_context_params_) {
254254 auto ret =
You can’t perform that action at this time.
0 commit comments