Browse Source

Specify translation file in log if it fails to load.

tags/v2.6.1
Andrew Belt 5 months ago
parent
commit
c1041ce700
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/string.cpp

+ 1
- 1
src/string.cpp View File

@@ -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);});


Loading…
Cancel
Save