MCPcopy Create free account
hub / github.com/bytebase/dbhub / onError

Method onError

src/utils/ssh-tunnel.ts:215–219  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

213 }
214
215 const onError = (err: Error) => {
216 client.removeListener('ready', onReady);
217 client.destroy();
218 reject(new Error(`SSH connection error${label ? ` (${label})` : ''}: ${err.message}`));
219 };
220
221 const onReady = () => {
222 client.removeListener('error', onError);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected