Explorar o código

Merge pull request #1629 from weseek/fix/log-for-testing-ldap

stringify ldap error for testing
Yuki Takei %!s(int64=6) %!d(string=hai) anos
pai
achega
5ac1f20ec0

+ 1 - 1
src/server/views/widget/passport/ldap-association-tester.html

@@ -79,7 +79,7 @@
           // add logs
           if ('true' === '{{showLog}}') {
             if (data.err) {
-              addLogs($id, data.err);
+              addLogs($id, JSON.stringify(data.err, null, 2));
             }
             if (data.ldapConfiguration) {
               const prettified = JSON.stringify(data.ldapConfiguration.server, undefined, 4);