shithub: nc

Download patch

ref: 73887072096d681d2d0bb5f4bc31638cbff60d5e
parent: 83242da15336e6c5a177f3114177e65b07019ae2
author: phil9 <telephil9@gmail.com>
date: Wed Dec 28 10:47:15 EST 2022

add forgotten %r directive in error messages

--- a/dirviewcmd.c
+++ b/dirviewcmd.c
@@ -65,7 +65,7 @@
 		for(n = 0; n < nd; n++){
 			d = md[n];
 			if(cp(p->model->path, d, o->model->path, nil) < 0){
-				errormessage("copy failed", mc, kc);
+				errormessage("copy failed: %r", mc, kc);
 				return;
 			}
 		}
@@ -79,7 +79,7 @@
 		if(message(Dconfirm, buf, mc, kc) == Bno)
 			return;
 		if(cp(p->model->path, d, o->model->path, nil) < 0){
-			errormessage("copy failed", mc, kc);
+			errormessage("copy failed: %r", mc, kc);
 			return;
 		}
 	}