From 0d0095fdbc8537da08967fb56b0be68e391d17a4 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 2 Sep 2022 15:28:25 -0400 Subject: [PATCH] Online Renewal - Fix msg declaration error Signed-off-by: Terran McCanna --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 53c63aca8a..00637e2471 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -684,13 +684,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}; + $msg = "Error updating user account: " . $resp->{textcode}; $logger->error("E-RENEW: $msg"); $ctx->{response}->{status} = 'UPDATE_ERR'; # Does this work? } -- 2.11.0