From: Arun Prakash Jana Date: Tue, 14 Jan 2020 19:51:13 +0000 (+0530) Subject: Use macro to print error X-Git-Tag: v2.9~5 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b1c9f4ed457d3cd734329a7dde755f1f9f58a242;p=nnn.git Use macro to print error --- 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; }