mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 01:10:04 +02:00
Explicit error message when dst file cannot be created / opened
This commit is contained in:
parent
2fa9904844
commit
cebab1d322
1
programs/.gitignore
vendored
1
programs/.gitignore
vendored
@ -43,6 +43,7 @@ _*
|
||||
tmp*
|
||||
*.zst
|
||||
result
|
||||
out
|
||||
|
||||
# fuzzer
|
||||
afl
|
||||
|
@ -411,7 +411,7 @@ static int FIO_compressFilename_dstFile(cRess_t ress,
|
||||
int result;
|
||||
|
||||
ress.dstFile = FIO_openDstFile(dstFileName);
|
||||
if (ress.dstFile==0) return 1;
|
||||
if (ress.dstFile==0) { DISPLAYLEVEL(1, "zstd: %s: cannot open \n", dstFileName); return 1; }
|
||||
|
||||
result = FIO_compressFilename_srcFile(ress, dstFileName, srcFileName, cLevel);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user