mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Add more useful failure message when stdin is an input
This commit is contained in:
@ -91,8 +91,10 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg,
|
||||
const char* acceptableLetters, int hasStdinInput) {
|
||||
int ch, result;
|
||||
|
||||
if (hasStdinInput)
|
||||
if (hasStdinInput) {
|
||||
UTIL_DISPLAY("Stdin is an input - not proceeding.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
UTIL_DISPLAY("%s", prompt);
|
||||
ch = getchar();
|
||||
|
Reference in New Issue
Block a user