From 3669c8e42b2f5d7da9b41343bbd15b1467322b74 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 16 Oct 2025 10:19:38 -0400 Subject: [PATCH] Bug 41020: Update FTP.pm _abort_operation prototype to match SFTP.pm Signed-off-by: John Doe --- Koha/File/Transport/FTP.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Koha/File/Transport/FTP.pm b/Koha/File/Transport/FTP.pm index cce88f5b3a7..47672ea7398 100644 --- a/Koha/File/Transport/FTP.pm +++ b/Koha/File/Transport/FTP.pm @@ -165,7 +165,7 @@ sub change_directory { my ( $self, $remote_directory ) = @_; my $operation = "change_directory"; - $self->{connection}->cwd($remote_directory) or return $self->_abort_operation($operation); + $self->{connection}->cwd($remote_directory) or return $self->_abort_operation( $operation, $remote_directory ); $self->add_message( { @@ -288,7 +288,7 @@ sub _is_connected { } sub _abort_operation { - my ( $self, $operation ) = @_; + my ( $self, $operation, $path ) = @_; $self->add_message( { @@ -296,7 +296,8 @@ sub _abort_operation { type => 'error', payload => { detail => $self->{connection} ? $self->{connection}->status : '', - error => $self->{connection} ? $self->{connection}->message : $@ + error => $self->{connection} ? $self->{connection}->message : $@, + path => $path ? $path : $self->{connection}->pwd, } } ); -- 2.39.5 (Apple Git-154)