diff options
| author | Peter Eisentraut | 2022-09-24 22:38:35 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2022-09-24 22:41:25 +0000 |
| commit | 26f7802beb2a4aafa0903f5bedeb7f1fa6f4f358 (patch) | |
| tree | dc9a4b176f6a37ca32b2667deb5e635196a0d70f /src/backend/backup | |
| parent | a6bc3301925e1a8ad1f58da629b9dd55bc4b8d9c (diff) | |
Message style improvements
Diffstat (limited to 'src/backend/backup')
| -rw-r--r-- | src/backend/backup/basebackup.c | 4 | ||||
| -rw-r--r-- | src/backend/backup/basebackup_server.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/backup/basebackup.c b/src/backend/backup/basebackup.c index dd103a8689f..459de55cb4a 100644 --- a/src/backend/backup/basebackup.c +++ b/src/backend/backup/basebackup.c @@ -863,7 +863,7 @@ parse_basebackup_options(List *options, basebackup_options *opt) if (!parse_compress_algorithm(optval, &opt->compression)) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("unrecognized compression algorithm \"%s\"", + errmsg("unrecognized compression algorithm: \"%s\"", optval))); o_compression = true; } @@ -919,7 +919,7 @@ parse_basebackup_options(List *options, basebackup_options *opt) if (o_compression_detail && !o_compression) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("compression detail requires compression"))); + errmsg("compression detail cannot be specified unless compression is enabled"))); if (o_compression) { diff --git a/src/backend/backup/basebackup_server.c b/src/backend/backup/basebackup_server.c index d020a92bfab..0258d7a03b3 100644 --- a/src/backend/backup/basebackup_server.c +++ b/src/backend/backup/basebackup_server.c @@ -72,7 +72,7 @@ bbsink_server_new(bbsink *next, char *pathname) if (!has_privs_of_role(GetUserId(), ROLE_PG_WRITE_SERVER_FILES)) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - errmsg("must be superuser or a role with privileges of the pg_write_server_files role to create server backup"))); + errmsg("must be superuser or a role with privileges of the pg_write_server_files role to create backup stored on server"))); CommitTransactionCommand(); /* @@ -86,7 +86,7 @@ bbsink_server_new(bbsink *next, char *pathname) if (!is_absolute_path(pathname)) ereport(ERROR, (errcode(ERRCODE_INVALID_NAME), - errmsg("relative path not allowed for server backup"))); + errmsg("relative path not allowed for backup stored on server"))); switch (pg_check_dir(pathname)) { |
