add suthfailed for when auth fails

This commit is contained in:
neon443
2025-07-03 11:37:02 +01:00
parent e9dc468a97
commit 0e1915cf64

View File

@@ -85,6 +85,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
if !host.password.isEmpty {
do { try authWithPw() } catch {
state = .authFailed
print("pw auth error")
print(error.localizedDescription)
}
@@ -94,6 +95,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
try authWithPubkey()
}
} catch {
state = .authFailed
print("error with pubkey auth")
print(error.localizedDescription)
}