reporting SSH tunnel errors

This commit is contained in:
Jan Prochazka
2024-10-23 16:35:56 +02:00
parent 3b82679c2d
commit 14501a70b9
3 changed files with 7 additions and 3 deletions

View File

@@ -21,6 +21,9 @@ function getConnectionLabelCore(connection, { allowExplicitDatabase = true } = {
if (connection.databaseFile) {
return getDatabaseFileLabel(connection.databaseFile);
}
if (connection.useSshTunnel && connection.server == 'localhost') {
return `${connection.sshHost} - SSH`;
}
if (connection.server) {
return connection.server;
}