Add warning for broken l10n json files

* makes it easier to spot broken l10n files
This commit is contained in:
Morris Jobke 2015-10-30 09:10:16 +01:00
parent 0c1a8c953a
commit ef76998eda
1 changed files with 2 additions and 0 deletions

View File

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