From 6738ac94f86ab5cb8b62ee9ae29390bebf34abf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lollipopkit=F0=9F=8F=B3=EF=B8=8F=E2=80=8D=E2=9A=A7?= =?UTF-8?q?=EF=B8=8F?= <10864310+lollipopkit@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:15:31 +0800 Subject: [PATCH] opt. --- lib/data/model/sftp/req.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/data/model/sftp/req.dart b/lib/data/model/sftp/req.dart index 20b97515..fdd9decb 100644 --- a/lib/data/model/sftp/req.dart +++ b/lib/data/model/sftp/req.dart @@ -24,8 +24,10 @@ class SftpReq { for (final hopId in hopIds) { final hopSpi = Stores.server.box.get(hopId); if (hopSpi == null) { - Loggers.app.warning('Jump server not found: $hopId, truncating chain'); - break; + throw SSHErr( + type: SSHErrType.connect, + message: 'Jump server not found: $hopId', + ); } final hopKey = hopSpi.id.isNotEmpty ? hopSpi.id : hopSpi.oldId; if (!visited.add(hopKey)) {