From fd6a5aa5dc4fae204cd187b852997d05caec9d66 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 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? } -- 2.11.0