]> Sergey Matveev's repositories - nnn.git/commitdiff
Use macro to print error
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 14 Jan 2020 19:51:13 +0000 (01:21 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 14 Jan 2020 19:51:13 +0000 (01:21 +0530)
src/nnn.c

index f395a6e3b949ac9f0675a5d7a9c270bf1916c51b..e63d72f32840c0fc1e5d52be117961f00b69d72e 100644 (file)
--- 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;
        }