diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3ce6a4ccca..a491bcf022 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -42,6 +42,7 @@ use Koha::Database; use Koha; use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Caches; +use Koha::Installer::Output qw ( say_failure ); use MARC::Record; use MARC::File::XML ( BinaryEncoding => 'utf8' ); @@ -24301,7 +24302,7 @@ unless ( $ENV{HTTP_HOST} ) { # Is that correct? } for my $e ( @{ $report->{error} } ) { say Encode::encode_utf8(join "\n", @{$e->{output}}); - say Encode::encode_utf8("ERROR - " . $e->{error}); + say_failure( undef, Encode::encode_utf8("ERROR - " . $e->{error}) ); $error_code = 1; } @@ -24312,7 +24313,7 @@ unless ( $ENV{HTTP_HOST} ) { # Is that correct? } for my $e ( @{ $report->{error} } ) { say Encode::encode_utf8(join "\n", @{$e->{output}}); - say Encode::encode_utf8("ERROR - " . $e->{error}); + say_failure( undef, Encode::encode_utf8("ERROR - " . $e->{error}) ); $error_code = 1; } exit $error_code;