Re: pgsql: Improve error messages for bytea decoding failures.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Improve error messages for bytea decoding failures. |
| Дата | |
| Msg-id | 6002.1404918895@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pgsql: Improve error messages for bytea decoding failures. (Robert Haas <rhaas@postgresql.org>) |
| Ответы |
Re: pgsql: Improve error messages for bytea decoding failures.
|
| Список | pgsql-committers |
Robert Haas <rhaas@postgresql.org> writes:
> Improve error messages for bytea decoding failures.
Per style guide, errhints should be capitalized full sentences, ie
- errhint("input data is missing padding, truncated, or otherwise corrupted")));
+ errhint("Input data is missing padding, truncated, or otherwise corrupted.")));
Also, it's unwise to use %c on a value you aren't sure is an ASCII
character; that's likely to produce an invalidly-encoded error message,
which will *not* be an improvement of the user experience.
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера