Message style improvements

This commit is contained in:
Peter Eisentraut 2022-09-17 08:10:59 +02:00
parent 32914d900f
commit a0b65155d0
2 changed files with 3 additions and 3 deletions

View File

@ -908,7 +908,7 @@ parse_basebackup_options(List *options, basebackup_options *opt)
if (target_detail_str != NULL)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("target '%s' does not accept a target detail",
errmsg("target \"%s\" does not accept a target detail",
target_str)));
opt->send_to_client = true;
}

View File

@ -215,7 +215,7 @@ reject_target_detail(char *target, char *target_detail)
if (target_detail != NULL)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("target '%s' does not accept a target detail",
errmsg("target \"%s\" does not accept a target detail",
target)));
return NULL;
@ -234,7 +234,7 @@ server_check_detail(char *target, char *target_detail)
if (target_detail == NULL)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("target '%s' requires a target detail",
errmsg("target \"%s\" requires a target detail",
target)));
return target_detail;