Re: Making error message more user-friendly with spaces in a URI
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Bruce Momjian <bruce@momjian.us>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>, Yushi Ogiwara <btogiwarayuushi@oss.nttdata.com>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2024-11-19T00:29:27Z
Lists: pgsql-hackers
On Mon, Nov 18, 2024 at 02:59:18PM -0500, Bruce Momjian wrote: > On Wed, Nov 6, 2024 at 01:09:12AM +0900, Fujii Masao wrote: >> The phrasing "Did you forget" feels a bit indirect to me. >> How about using something clearer and more direct instead? >> >> ----------- >> psql: error: unexpected spaces found "a b", use percent-encoded spaces instead >> ----------- > > +1 Could it be better to mention %20 in the error message? Say an addition like: "unexpected spaces found \"%s\", use percent-encoded spaces (%%20) instead" -- Michael
Commits
-
libpq: Improve error message when parsing URI parameters and keywords
- a3699daea202 18.0 landed