cleaned up crashes and stuff from the alert message not getting a value

This commit is contained in:
neon443 committed 2025-06-21 12:06:12 +01:00
1 parent 59e3a9e296
commit cf5feaacc2
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ class SSHHandler: ObservableObject {
self.host.key = getHostkey()
}
var verbosity: Int = SSH_LOG_FUNCTIONS
var verbosity: Int = 0
session = ssh_new()
guard session != nil else {
+1 -4
View File
@@ -146,10 +146,7 @@ struct ConnectionView: View {
handler.host.key = hostsManager.getHostMatching(handler.host)?.key
}
} message: {
Text("""
Expected \(hostsManager.getHostMatching(handler.host)!.key!.base64EncodedString())
but recieved \(handler.host.key!.base64EncodedString()) from the server
""")
Text("Expected \(hostsManager.getHostMatching(handler.host)!.key?.base64EncodedString() ?? "null")\nbut recieved \(handler.host.key?.base64EncodedString() ?? "null" ) from the server")
}
.transition(.opacity)
.toolbar {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.