mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Unify error messages
... for translatability purposes.
This commit is contained in:
@ -856,7 +856,9 @@ WaitEventAdjustEpoll(WaitEventSet *set, WaitEvent *event, int action)
|
||||
if (rc < 0)
|
||||
ereport(ERROR,
|
||||
(errcode_for_socket_access(),
|
||||
errmsg("epoll_ctl() failed: %m")));
|
||||
/* translator: %s is a syscall name, such as "poll()" */
|
||||
errmsg("%s failed: %m",
|
||||
"epoll_ctl()")));
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1087,7 +1089,9 @@ WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
|
||||
waiting = false;
|
||||
ereport(ERROR,
|
||||
(errcode_for_socket_access(),
|
||||
errmsg("epoll_wait() failed: %m")));
|
||||
/* translator: %s is a syscall name, such as "poll()" */
|
||||
errmsg("%s failed: %m",
|
||||
"epoll_wait()")));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -1211,7 +1215,9 @@ WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
|
||||
waiting = false;
|
||||
ereport(ERROR,
|
||||
(errcode_for_socket_access(),
|
||||
errmsg("poll() failed: %m")));
|
||||
/* translator: %s is a syscall name, such as "poll()" */
|
||||
errmsg("%s failed: %m",
|
||||
"poll()")));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -181,7 +181,9 @@ pg_rotate_logfile(PG_FUNCTION_ARGS)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to rotate log files with adminpack 1.0"),
|
||||
errhint("Consider using pg_logfile_rotate(), which is part of core, instead."))));
|
||||
/* translator: %s is a SQL function name */
|
||||
errhint("Consider using %s, which is part of core, instead.",
|
||||
"pg_logfile_rotate()"))));
|
||||
|
||||
if (!Logging_collector)
|
||||
{
|
||||
|
Reference in New Issue
Block a user