Robert Haas <rhaas(at)postgresql(dot)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