Show cli errors on file access
When testing save/restore with CLI:
# /usr/share/lemonldap-ng/bin/lemonldap-ng-cli save > conf.js
# /usr/share/lemonldap-ng/bin/lemonldap-ng-cli restore conf.js
readline() on closed filehandle $f at /usr/share/perl5/Lemonldap/NG/Manager/Cli.pm line 216.
[Sun Jun 30 17:53:43 2019] [LLNG:2936] [warn] [anonymous] malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 171.
Bad file descriptor
$VAR1 = [
400,
[
'Content-Type',
'application/json; charset=utf-8'
],
[
'{"error":"malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before \\"(end of string)\\") at /usr/share/perl5/JSON.pm line 171.\\nBad file descriptor"}'
]
];