Re: Making error message more user-friendly with spaces in a URI

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>, Fujii Masao <masao.fujii@oss.nttdata.com>, Yushi Ogiwara <btogiwarayuushi@oss.nttdata.com>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2024-11-19T01:15:28Z
Lists: pgsql-hackers
On Mon, Nov 18, 2024 at 07:52:08PM -0500, Tom Lane wrote:
> +1.  Also the grammar seems a bit off; how about
> 
> "unexpected spaces found in \"%s\", use percent-encoded spaces (%%20) instead"

That's better, thanks.  This one's on me, so I think that I'll just go
fix that today with this wording.  This patch was on my bucket list,
just lost sight of it.
--
Michael

Commits

  1. libpq: Improve error message when parsing URI parameters and keywords