compose: add mapped locale to Compose-file-not-found error log
authorRan Benita <ran@unusedvar.com>
Sat, 8 May 2021 18:08:37 +0000 (21:08 +0300)
committerRan Benita <ran@unusedvar.com>
Sat, 8 May 2021 18:08:37 +0000 (21:08 +0300)
Signed-off-by: Ran Benita <ran@unusedvar.com>
src/compose/table.c

index 1691555..8a8d11f 100644 (file)
@@ -206,7 +206,8 @@ xkb_compose_table_new_from_locale(struct xkb_context *ctx,
     }
     free(path);
 
-    log_err(ctx, "couldn't find a Compose file for locale \"%s\"\n", locale);
+    log_err(ctx, "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
+            locale, table->locale);
     xkb_compose_table_unref(table);
     return NULL;