From 799c059070eff849c81550423d16344748522bc7 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 11 Aug 2020 16:21:18 -0700 Subject: [PATCH] Add internationalized version of LDAP error message --- app/Console/Commands/LdapSync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index b0897f240671..aba23151aa90 100755 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -128,7 +128,7 @@ public function handle() $location_users = Ldap::findLdapUsers($ldap_loc["ldap_ou"]); } catch (\Exception $e) { // FIXME: this is stolen from line 77 or so above if ($this->option('json_summary')) { - $json_summary = [ "error" => true, "error_message" => "Location ID: ".$ldap_loc['id']." (".$ldap_loc['name'].") cannot connect to \"".$ldap_loc["ldap_ou"]."\" - ".$e->getMessage(), "summary" => [] ]; + $json_summary = [ "error" => true, "error_message" => trans('admin/users/message.error.ldap_could_not_search')." Location: ".$ldap_loc['name']." (ID: ".$ldap_loc['id'].") cannot connect to \"".$ldap_loc["ldap_ou"]."\" - ".$e->getMessage(), "summary" => [] ]; $this->info(json_encode($json_summary)); } LOG::info($e);