From 9b8ac7323167567fb56f01a1a8a9c9413aff5991 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 5 Dec 2013 15:15:12 -0800 Subject: [PATCH] Improve the quality of the missing providers output. In particular, note when it's probably our bug, not the app's bug. --- src/dispatch_common.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 3db79c7..77d7979 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -496,7 +496,13 @@ epoxy_print_failure_reasons(const char *name, "Requires one of:\n", name); for (i = 0; providers[i] != 0; i++) - fputs(stderr, provider_names[providers[i]]); + fprintf(stderr, " %s", + provider_names[providers[i]]); + + if (providers[0] == 0) { + fprintf(stderr, " No known providers. This is likely a bug " + "in libepoxy code generation\n"); + } } PUBLIC void