From cde39abc8d8e9ddfa885cf801224c76a1c837f63 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 17 Sep 2024 10:37:36 -0400 Subject: [PATCH] Bug 37895: (QA follow-up) Switch try/finally block to try/catch block --- installer/data/mysql/atomicupdate/skeleton.pl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/atomicupdate/skeleton.pl b/installer/data/mysql/atomicupdate/skeleton.pl index 62870ef5ecb..00e807744a1 100755 --- a/installer/data/mysql/atomicupdate/skeleton.pl +++ b/installer/data/mysql/atomicupdate/skeleton.pl @@ -11,12 +11,9 @@ return { # Do you stuffs here try { $dbh->do(q{}); - } finally { - if (@_) { - say_failure( $out, "Database modification failed with errors: @_" ); - } else { - say_success( $out, "Database modification was successful!" ); - } + say_success( $out, "Database modification was successful!" ); + } catch { + say_failure( $out, "Database modification failed with errors: $_" ); }; # Print useful stuff here -- 2.39.3 (Apple Git-146)