mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Add warning for broken l10n json files
* makes it easier to spot broken l10n files
This commit is contained in:
parent
0c1a8c953a
commit
ef76998eda
1 changed files with 2 additions and 0 deletions
|
|
@ -144,6 +144,8 @@ class OC_L10N implements \OCP\IL10N {
|
|||
|
||||
$json = json_decode(file_get_contents($transFile), true);
|
||||
if (!is_array($json)) {
|
||||
$jsonError = json_last_error();
|
||||
\OC::$server->getLogger()->warning("Failed to load $transFile - json error code: $jsonError", ['app' => 'l10n']);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue