Skip to content

Commit 2f96278

Browse files
committed
update error message
1 parent 0bdeb1d commit 2f96278

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

programs/fileio.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,10 @@ FIO_openDstFile(FIO_ctx_t* fCtx, FIO_prefs_t* const prefs,
659659
}
660660
#endif
661661
if (f == NULL) {
662-
DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
663662
if (UTIL_isFileDescriptorPipe(dstFileName)) {
664-
DISPLAYLEVEL(1, "When using process substitution (<(...)), specify an output destination with -o or -c. \n");
663+
DISPLAYLEVEL(1, "zstd: error: no output specified (use -o or -c). \n");
664+
} else {
665+
DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
665666
}
666667
} else {
667668
/* An increased buffer size can provide a significant performance

tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh.stderr.exact

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Trace:FileStat: > UTIL_isRegularFile(out/file.zst)
2222
Trace:FileStat: > UTIL_stat(-1, out/file.zst)
2323
Trace:FileStat: < 0
2424
Trace:FileStat: < 0
25-
zstd: out/file.zst: Permission denied
2625
Trace:FileStat: > UTIL_isFileDescriptorPipe(out/file.zst)
2726
Trace:FileStat: < 0
27+
zstd: out/file.zst: Permission denied
2828
zstd: can't stat out/file.zst : Permission denied -- ignored

0 commit comments

Comments
 (0)