| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Missing newlines in error messages |
| Дата | |
| Msg-id | 19955.1481816335@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] Missing newlines in error messages (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: [HACKERS] Missing newlines in error messages
|
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> While poking around the pg_basebackup code, I noticed there are a lot of
> error messages are missing the \n at the end. Most of them are very
> unlikely to happen, but in general I believe all error messages we print to
> stderr from those binaries should have a newline at the end.
> Is that wrong? :)
I think you missed the fact that PQerrorMessage's result will already
end with a newline. So most (not all) of these look OK as they stand.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера