Commit Diff


commit - 37ee718b316ee5003e14168354db4fbac065996b
commit + 021918ff7717955820540e4a6b6433bebbcbe9b2
blob - 943d3eba43b2c107ab04b4edf1be027c04f6c10d
blob + 047727d268daa152be8a8f1c06bda1b42aa1abb0
--- cvg/cvg.c
+++ cvg/cvg.c
@@ -9123,8 +9123,7 @@ cmd_info(int argc, char *argv[])
 				const struct got_error *perr;
 
 				perr = pe->data;
-				error = got_error_fmt(perr->code, "%s",
-				    pe->path);
+				error = got_error_path(pe->path, perr->code);
 				break;
 			}
 		}
blob - 923b7d42d5db32fc669567872897022c05334558
blob + 038355ca9ebddac3137d594a30e2f9015876e2f1
--- got/got.c
+++ got/got.c
@@ -14721,8 +14721,7 @@ cmd_info(int argc, char *argv[])
 				const struct got_error *perr;
 
 				perr = pe->data;
-				error = got_error_fmt(perr->code, "%s",
-				    pe->path);
+				error = got_error_path(pe->path, perr->code);
 				break;
 			}
 		}