From: Terran McCanna Date: Fri, 2 Sep 2022 19:28:25 +0000 (-0400) Subject: Online Renewal - Fix msg declaration error X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fd6a5aa5dc4fae204cd187b852997d05caec9d66;p=working%2FEvergreen.git Online Renewal - Fix msg declaration error Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm index 89f5c81e92..9ea2947fc0 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -867,13 +867,14 @@ sub save_user { $resp = {textcode => 'UNKNOWN_ERROR'} unless $resp; if ($U->is_event($resp)) { + my $msg = ''; if ($update_type == 'register') { - my $msg = "Error creating user account: " . $resp->{textcode}; + $msg = "Error creating user account: " . $resp->{textcode}; $logger->error("ECARD: $msg"); $ctx->{response}->{status} = 'CREATE_ERR'; - } else { - my $msg = "Error updating user account: " . $resp->{textcode}; + } else { + $msg = "Error updating user account: " . $resp->{textcode}; $logger->error("E-RENEW: $msg"); $ctx->{response}->{status} = 'UPDATE_ERR'; # Does this work? }