aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-24 20:30:16 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-24 20:30:16 +0530
commitfffaa74a099897ed5308a78043a5dac701301d9b (patch)
tree9f6617fa0af6ec4d1f2cc5940479c52404f9aaad /src/nnn.c
parent7b7252dd3256da50ed622240849015d80d49866c (diff)
downloadnnn-fffaa74a099897ed5308a78043a5dac701301d9b.tar.gz
Fix return and show error
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5f90fae..b9bb23c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6828,8 +6828,10 @@ int main(int argc, char *argv[])
}
/* Prevent picker and list mode conflict */
- if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO))
- exit(1);
+ if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) {
+ fprintf(stderr, "stdin/out conflict\n");
+ return _FAILURE;
+ }
home = getenv("HOME");
if (!home) {