Display type description in error message - sacc - sacc(omys), simple console gopher client
HTML git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR LICENSE
---
DIR commit 675924be45d5f7e636610792c4aaed40caec012d
DIR parent b2cd58c614e59b3def93e302717c728b31eea7bd
HTML Author: Quentin Rameau <quinq@fifth.space>
Date: Wed, 5 Jul 2017 17:02:21 +0200
Display type description in error message
Diffstat:
M sacc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/sacc.c b/sacc.c
@@ -364,7 +364,8 @@ dig(Item *entry, Item *item)
}
break;
default:
- fprintf(stderr, "Type %c not supported\n", item->type);
+ fprintf(stderr, "Type %c (%s) not supported\n",
+ item->type, typedisplay(item->type));
return 0;
}