mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Message style improvements
Some message style improvements in new code, and some small refactorings to make translations easier.
This commit is contained in:
@@ -1949,7 +1949,7 @@ exec_command_gexec(PsqlScanState scan_state, bool active_branch)
|
||||
{
|
||||
if (PQpipelineStatus(pset.db) != PQ_PIPELINE_OFF)
|
||||
{
|
||||
pg_log_error("\\gexec not allowed in pipeline mode");
|
||||
pg_log_error("\\%s not allowed in pipeline mode", "gexec");
|
||||
clean_extended_state();
|
||||
return PSQL_CMD_ERROR;
|
||||
}
|
||||
@@ -1975,7 +1975,7 @@ exec_command_gset(PsqlScanState scan_state, bool active_branch)
|
||||
|
||||
if (PQpipelineStatus(pset.db) != PQ_PIPELINE_OFF)
|
||||
{
|
||||
pg_log_error("\\gset not allowed in pipeline mode");
|
||||
pg_log_error("\\%s not allowed in pipeline mode", "gset");
|
||||
clean_extended_state();
|
||||
return PSQL_CMD_ERROR;
|
||||
}
|
||||
@@ -3287,7 +3287,7 @@ exec_command_watch(PsqlScanState scan_state, bool active_branch,
|
||||
|
||||
if (PQpipelineStatus(pset.db) != PQ_PIPELINE_OFF)
|
||||
{
|
||||
pg_log_error("\\watch not allowed in pipeline mode");
|
||||
pg_log_error("\\%s not allowed in pipeline mode", "watch");
|
||||
clean_extended_state();
|
||||
success = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user