1
0
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:
Yann Collet 2016-07-02 00:12:14 +02:00
parent 2fa9904844
commit cebab1d322
2 changed files with 2 additions and 1 deletions

1
programs/.gitignore vendored
View File

@ -43,6 +43,7 @@ _*
tmp*
*.zst
result
out
# fuzzer
afl

View File

@ -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);