diff --git a/tabby-ssh/src/components/sftpPanel.component.ts b/tabby-ssh/src/components/sftpPanel.component.ts index 3118d733..7d0ec225 100644 --- a/tabby-ssh/src/components/sftpPanel.component.ts +++ b/tabby-ssh/src/components/sftpPanel.component.ts @@ -34,7 +34,12 @@ export class SFTPPanelComponent { async ngOnInit (): Promise { this.sftp = await this.session.openSFTP() - await this.navigate(this.path) + try { + await this.navigate(this.path) + } catch (error) { + console.warn('Could not navigate to', this.path, ':', error) + await this.navigate('/') + } } async navigate (newPath: string): Promise {