tMeaningful error message for wrong file format - repo - list/download/sync packs with remote repositories
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 1966d66302e577e563df9b2402ccc5803e3729b4
DIR parent acd2ded6f787d04551b3a00ed601d57cc136a900
HTML Author: z3bra <contactatz3bradotorg>
Date: Fri, 16 Dec 2016 11:39:21 +0100
Meaningful error message for wrong file format
Diffstat:
M repo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/repo.c b/repo.c
t@@ -88,7 +88,7 @@ repolist(struct packs *plist, char *local)
while (fgets(buf, LINE_MAX, list)) {
r = sscanf(buf, "%s\t%s\t%s", n, v, u);
if (r < 3) {
- perror(fn);
+ fprintf(stderr, "%s: Invalid format detected\n", fn);
exit(1);
}
addpack(plist, n, v, u);