diff --git a/tabby-ssh/src/session/sftp.ts b/tabby-ssh/src/session/sftp.ts index 5a3b1e6e1..01dc53a5f 100644 --- a/tabby-ssh/src/session/sftp.ts +++ b/tabby-ssh/src/session/sftp.ts @@ -147,6 +147,7 @@ export class SFTPSession { transfer.close() handle.close() } catch (e) { + transfer.setStatus(e instanceof Error ? e.message : String(e)) transfer.cancel() throw e }