diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2006-05-22 11:21:54 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2006-05-22 11:21:54 +0000 |
| commit | 79e371037b960208c7febb4b292fb701a3f2a862 (patch) | |
| tree | 75ba34f3c29966e5b285b320226054d322bfafa1 /src/bin/pg_dump/common.c | |
| parent | e9cc53025ad4bf3a1a7287192ba47fbbf4aac826 (diff) | |
| download | postgresql-79e371037b960208c7febb4b292fb701a3f2a862.tar.gz | |
Add strerror to pg_dump error messages where missing.
Diffstat (limited to 'src/bin/pg_dump/common.c')
| -rw-r--r-- | src/bin/pg_dump/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index bbbef5c51f..102ed6a844 100644 --- a/src/bin/pg_dump/common.c +++ b/src/bin/pg_dump/common.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.89 2006/03/05 15:58:50 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.90 2006/05/22 11:21:54 petere Exp $ * *------------------------------------------------------------------------- */ @@ -768,7 +768,7 @@ parseOidArray(const char *str, Oid *array, int arraysize) { if (argNum >= arraysize) { - write_msg(NULL, "could not parse numeric array: too many numbers\n"); + write_msg(NULL, "could not parse numeric array \"%s\": too many numbers\n", str); exit_nicely(); } temp[j] = '\0'; @@ -783,7 +783,7 @@ parseOidArray(const char *str, Oid *array, int arraysize) if (!(isdigit((unsigned char) s) || s == '-') || j >= sizeof(temp) - 1) { - write_msg(NULL, "could not parse numeric array: invalid character in number\n"); + write_msg(NULL, "could not parse numeric array \"%s\": invalid character in number\n", str); exit_nicely(); } temp[j++] = s; |
