From a331172992dec4e3be8d7271ef19d871e920539c Mon Sep 17 00:00:00 2001 From: Christian Egli Date: Tue, 27 Aug 2024 15:41:59 +0200 Subject: [PATCH] Emit better error messages when generating display names --- extra/generate-display-names/generate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/generate-display-names/generate.c b/extra/generate-display-names/generate.c index 1b5000771..898f648da 100644 --- a/extra/generate-display-names/generate.c +++ b/extra/generate-display-names/generate.c @@ -295,7 +295,7 @@ main(int argc, char **argv) { result = 1; } else { if (strcmp(actualIndexName, expectedIndexName) != 0) { - fprintf(stderr, "%s: %s != %s\n", table, actualIndexName, + fprintf(stderr, "%s: index-name: %s != %s\n", table, actualIndexName, expectedIndexName); fprintf(stderr, " cat %s | sed 's/^\\(#-index-name: *\\).*$/\\1%s/g' > " @@ -311,7 +311,7 @@ main(int argc, char **argv) { result = 1; } else { if (strcmp(actualDisplayName, expectedDisplayName) != 0) { - fprintf(stderr, "%s: %s != %s\n", table, actualDisplayName, + fprintf(stderr, "%s: display-name: %s != %s\n", table, actualDisplayName, expectedDisplayName); fprintf(stderr, " cat %s | sed 's/^\\(#-display-name: *\\).*$/\\1%s/g' > " @@ -329,7 +329,7 @@ main(int argc, char **argv) { } } else if (strcmp(actualDisplayName, generatedDisplayName) != 0) { if (generate) { - fprintf(stderr, "%s: %s != %s\n", table, actualDisplayName, + fprintf(stderr, "%s: generated display-name: %s != %s\n", table, actualDisplayName, generatedDisplayName); result = 1; }