Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb755b6

Browse files
committed
This patch logs the error code in the default case, so that the user
stands a chance of looking it up. "Unrecognised error" is alwaysdisheartening. :-)Dominic Mitchell
1 parent31ae87c commitfb755b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/interfaces/libpq/fe-secure.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.49 2004/08/29 05:07:00 momjian Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.50 2004/09/23 13:20:45 momjian Exp $
1515
*
1616
* NOTES
1717
* The client *requires* a valid server certificate. Since
@@ -1019,7 +1019,8 @@ open_client_SSL(PGconn *conn)
10191019
r=SSL_connect(conn->ssl);
10201020
if (r <=0)
10211021
{
1022-
switch (SSL_get_error(conn->ssl,r))
1022+
interr=SSL_get_error(conn->ssl,r);
1023+
switch (err)
10231024
{
10241025
caseSSL_ERROR_WANT_READ:
10251026
returnPGRES_POLLING_READING;
@@ -1054,7 +1055,7 @@ open_client_SSL(PGconn *conn)
10541055

10551056
default:
10561057
printfPQExpBuffer(&conn->errorMessage,
1057-
libpq_gettext("unrecognized SSL error code\n"));
1058+
libpq_gettext("unrecognized SSL error code (%d)\n"),err);
10581059
close_SSL(conn);
10591060
returnPGRES_POLLING_FAILED;
10601061
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp