Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6b2e7e1

Browse files
author
Thomas G. Lockhart
committed
Add newline/tab to middle of long failure message to pretty it up a bit.
1 parent e8783d4 commit 6b2e7e1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/interfaces/libpq/fe-exec.c

+6-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.44 1997/12/05 01:13:24 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.45 1997/12/23 20:00:06 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -456,14 +456,11 @@ process_response_from_backend(FILE *pfin, FILE *pfout, FILE *pfdebug,
456456
if (id == EOF)
457457
{
458458
/* hmm, no response from the backend-end, that's bad */
459-
(void) sprintf(reason,
460-
"PQexec() -- Request was sent to backend, but backend "
461-
"closed the channel before "
462-
"responding. This probably means the backend "
463-
"terminated abnormally before or while processing "
464-
"the request.\n");
465-
conn->status = CONNECTION_BAD; /* No more connection to
466-
* backend */
459+
(void) sprintf(reason, "PQexec() -- Request was sent to backend"
460+
", but backend closed the channel before responding."
461+
"\n\tThis probably means the backend terminated abnormally"
462+
" before or while processing the request.\n");
463+
conn->status = CONNECTION_BAD; /* No more connection to backend */
467464
*result_p = (PGresult *) NULL;
468465
done = true;
469466
}

0 commit comments

Comments
 (0)