Display type description in error message - sacc - sacc(omys), simple console g… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 675924be45d5f7e636610792c4aaed40caec012d | |
parent b2cd58c614e59b3def93e302717c728b31eea7bd | |
Author: Quentin Rameau <[email protected]> | |
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(-) | |
--- | |
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; | |
} | |