mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
fix: do not error out if ssh config is empty (#1632)
As connections can now be stored in the internal connection, a missing or invalid ssh config should not cause the entire list of connections to be empty. This change ignores the error from the ssh config and proceeds to construct the list without it.
This commit is contained in:
parent
73561dc12d
commit
0c9f35791d
@ -712,7 +712,8 @@ func GetConnectionsList() ([]string, error) {
|
||||
|
||||
fromConfig, err := GetConnectionsFromConfig()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
// this is not a fatal error. do not return
|
||||
log.Printf("warning: no connections from ssh config found: %v", err)
|
||||
}
|
||||
|
||||
// sort into one final list and remove duplicates
|
||||
|
Loading…
Reference in New Issue
Block a user