diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-30 09:10:16 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-30 09:10:16 +0100 |
commit | ef76998eda0419477cd1e8b62305afad3f67c677 (patch) | |
tree | d0bb7a20fdacfa36e8406d500029666d7d070379 /lib | |
parent | 0c1a8c953aba8968301f0871a607d5abcf7b3003 (diff) | |
download | nextcloud-server-ef76998eda0419477cd1e8b62305afad3f67c677.tar.gz nextcloud-server-ef76998eda0419477cd1e8b62305afad3f67c677.zip |
Add warning for broken l10n json files
* makes it easier to spot broken l10n files
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/l10n.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 5816e20b104..86335bce92f 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -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; } |