fix: ssh alter url (#554)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-27 15:22:26 +08:00
committed by GitHub
parent 329fd33b69
commit eb83d05c81
17 changed files with 79 additions and 84 deletions

View File

@@ -93,8 +93,8 @@ Future<SSHClient> genClient(
spi.port,
timeout: timeout,
);
} catch (e, s) {
Loggers.app.warning('genClient', e, s);
} catch (e) {
Loggers.app.warning('genClient', e);
if (spi.alterUrl == null) rethrow;
try {
final res = spi.fromStringUrl();
@@ -104,8 +104,8 @@ Future<SSHClient> genClient(
res.$3,
timeout: timeout,
);
} catch (e, s) {
Loggers.app.warning('genClient alterUrl', e, s);
} catch (e) {
Loggers.app.warning('genClient alterUrl', e);
rethrow;
}
}