From c1041ce7000d38bafa2aa207bf4ec541f81e8f35 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 4 Dec 2024 22:23:40 -0500 Subject: [PATCH] Specify translation file in log if it fails to load. --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cpp b/src/string.cpp index 2da53ee6..1241340f 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -351,7 +351,7 @@ static void loadTranslations() { json_error_t error; json_t* rootJ = json_loadf(file, 0, &error); if (!rootJ) { - WARN("Translation file has invalid JSON at %d:%d %s", error.line, error.column, error.text); + WARN("Translation file %s has invalid JSON at %d:%d %s", path.c_str(), error.line, error.column, error.text); continue; } DEFER({json_decref(rootJ);});