mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Use macro to print error
This commit is contained in:
parent
a9ebe7ed88
commit
b1c9f4ed45
|
@ -3469,7 +3469,7 @@ static bool archive_mount(char *name, char *path, char *newpath, int *presel)
|
||||||
free(dir);
|
free(dir);
|
||||||
|
|
||||||
if (!xmktree(newpath, TRUE)) {
|
if (!xmktree(newpath, TRUE)) {
|
||||||
printwait(strerror(errno), presel);
|
printwarn(presel);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3514,7 +3514,7 @@ static bool remote_mount(char *newpath, int *presel)
|
||||||
/* Create the mount point */
|
/* Create the mount point */
|
||||||
mkpath(cfgdir, tmp, newpath);
|
mkpath(cfgdir, tmp, newpath);
|
||||||
if (!xmktree(newpath, TRUE)) {
|
if (!xmktree(newpath, TRUE)) {
|
||||||
printwait(strerror(errno), presel);
|
printwarn(presel);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue