Skip to content

Commit

Permalink
fix: improve error message for connection refusal in Replica class
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsgrn committed Jan 11, 2025
1 parent 1933b10 commit 9dcfc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/replica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Replica extends ServiceBase {
this.conn = await mysql.createConnection(this._replicaOptions)
} catch (err) {
if (err instanceof Error && 'code' in err && err.code === "ECONNREFUSED") {
this.log.error("Connection refused. Did you set up the SSH tunnel?")
this.log.error("Connection refused. Did you forgot to set up the SSH tunnel?")
process.exit(1)
}
}
Expand Down

0 comments on commit 9dcfc26

Please sign in to comment.