mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-03 01:42:48 +00:00
Add error var
This commit is contained in:
parent
6e99800298
commit
bef595eced
1 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ if process.env["SHARELATEX_LDAP_URL"]
|
||||||
if _ldap_search_attribs = process.env["SHARELATEX_LDAP_SEARCH_ATTRIBUTES"]
|
if _ldap_search_attribs = process.env["SHARELATEX_LDAP_SEARCH_ATTRIBUTES"]
|
||||||
try
|
try
|
||||||
JSON.parse(_ldap_search_attribs)
|
JSON.parse(_ldap_search_attribs)
|
||||||
catch
|
catch e
|
||||||
console.error "could not parse SHARELATEX_LDAP_SEARCH_ATTRIBUTES"
|
console.error "could not parse SHARELATEX_LDAP_SEARCH_ATTRIBUTES"
|
||||||
else
|
else
|
||||||
undefined
|
undefined
|
||||||
|
@ -482,7 +482,7 @@ if process.env["SHARELATEX_LDAP_URL"]
|
||||||
if _ldap_group_search_attribs = process.env["SHARELATEX_LDAP_GROUP_SEARCH_ATTRIBUTES"]
|
if _ldap_group_search_attribs = process.env["SHARELATEX_LDAP_GROUP_SEARCH_ATTRIBUTES"]
|
||||||
try
|
try
|
||||||
JSON.parse(_ldap_group_search_attribs)
|
JSON.parse(_ldap_group_search_attribs)
|
||||||
catch
|
catch e
|
||||||
console.error "could not parse SHARELATEX_LDAP_GROUP_SEARCH_ATTRIBUTES"
|
console.error "could not parse SHARELATEX_LDAP_GROUP_SEARCH_ATTRIBUTES"
|
||||||
else
|
else
|
||||||
undefined
|
undefined
|
||||||
|
|
Loading…
Reference in a new issue