From b1c9f4ed457d3cd734329a7dde755f1f9f58a242 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 15 Jan 2020 01:21:13 +0530 Subject: [PATCH] Use macro to print error --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index f395a6e3..e63d72f3 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3469,7 +3469,7 @@ static bool archive_mount(char *name, char *path, char *newpath, int *presel) free(dir); if (!xmktree(newpath, TRUE)) { - printwait(strerror(errno), presel); + printwarn(presel); return FALSE; } @@ -3514,7 +3514,7 @@ static bool remote_mount(char *newpath, int *presel) /* Create the mount point */ mkpath(cfgdir, tmp, newpath); if (!xmktree(newpath, TRUE)) { - printwait(strerror(errno), presel); + printwarn(presel); return FALSE; }