From ce56810a3258d81593f1c90ea421e524f95e1382 Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Mon, 28 Sep 2020 12:15:18 -0400 Subject: [PATCH] Modify error messages on console input/output --- programs/zstdcli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 5d1c09de..8df9a646 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -1243,7 +1243,7 @@ int main(int const argCount, const char* argv[]) /* Check if input/output defined as console; trigger an error in this case */ if (!strcmp(filenames->fileNames[0], stdinmark) && IS_CONSOLE(stdin) ) { - badusage(programName); + DISPLAYLEVEL(1, "stdin is a console, aborting\n"); CLEAN_RETURN(1); } if ( outFileName && !strcmp(outFileName, stdoutmark) @@ -1251,7 +1251,7 @@ int main(int const argCount, const char* argv[]) && !strcmp(filenames->fileNames[0], stdinmark) && !forceStdout && operation!=zom_decompress ) { - badusage(programName); + DISPLAYLEVEL(1, "stdout is a console, aborting\n"); CLEAN_RETURN(1); }