mirror of
https://github.com/restic/restic.git
synced 2025-03-13 20:20:56 +00:00
Merge pull request #1824 from rfjakob/ssh_command_exited
sftp: persist "ssh command exited" error
This commit is contained in:
commit
0fcd9d6926
@ -75,7 +75,9 @@ func startClient(program string, args ...string) (*SFTP, error) {
|
|||||||
go func() {
|
go func() {
|
||||||
err := cmd.Wait()
|
err := cmd.Wait()
|
||||||
debug.Log("ssh command exited, err %v", err)
|
debug.Log("ssh command exited, err %v", err)
|
||||||
ch <- errors.Wrap(err, "cmd.Wait")
|
for {
|
||||||
|
ch <- errors.Wrap(err, "ssh command exited")
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// open the SFTP session
|
// open the SFTP session
|
||||||
|
Loading…
x
Reference in New Issue
Block a user