Re: pgsql: Improve error messages for bytea decoding failures.

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Improve error messages for bytea decoding failures.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Improve error messages for bytea decoding failures.