mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
refactor(db/connection): additional info for auth_gssapi_client error
This commit is contained in:
1 parent
68028f1f4e
commit
4ab7bb7a10
1 file changed
+7
-1
@@ -44,8 +44,14 @@ export async function createConnectionPool() {
|
||||
} catch (err: any) {
|
||||
isServerConnected = false;
|
||||
|
||||
const message = err.message.includes('auth_gssapi_client')
|
||||
? `Server requests authentication using unknown plugin auth_gssapi_client.\nSee https://github.com/overextended/oxmysql/issues/213.`
|
||||
: err.message;
|
||||
|
||||
console.log(
|
||||
`^3Unable to establish a connection to the database (${err.code})!\n^1Error ${err.errno}: ${err.message}^0`
|
||||
`^3Unable to establish a connection to the database (${err.code})!\n^1Error${
|
||||
err.errno ? ` ${err.errno}` : ''
|
||||
}: ${message}^0`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user