Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit d2f46ff

Browse files
committed
refactor(database/pool): link to issues when connection fails
1 parent ab2d283 commit d2f46ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/database/pool.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export async function createConnectionPool() {
2424
console.log(`${dbVersion} ^2Database server connection established!^0`);
2525

2626
if (config.multipleStatements) {
27-
console.warn(`multipleStatements is enabled. Used incorrectly, this option may cause SQL injection.\nSee https://github.com/overextended/oxmysql/issues/102)`)
27+
console.warn(`multipleStatements is enabled. Used incorrectly, this option may cause SQL injection.`)
2828
}
2929

3030
} catch (err: any) {
3131
const message = err.message.includes('auth_gssapi_client')
32-
? `Server requests authentication using unknown plugin auth_gssapi_client.\nSee https://github.com/overextended/oxmysql/issues/213.`
32+
? `Requested authentication using unknown plugin auth_gssapi_client.`
3333
: err.message;
3434

3535
console.log(
@@ -38,6 +38,8 @@ export async function createConnectionPool() {
3838
}: ${message}^0`
3939
);
4040

41+
console.log(`See https://github.com/overextended/oxmysql/issues/154 for more information.`)
42+
4143
if (config.password) config.password = '******';
4244

4345
console.log(config);

0 commit comments

Comments
 (0)