Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDC7p-00GfZj-4g for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2024 00:29:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tDC7n-008v9X-7Y for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2024 00:29:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDC7m-008v7Y-TF for pgsql-hackers@lists.postgresql.org; Tue, 19 Nov 2024 00:29:47 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDC7l-002ej7-2Z for pgsql-hackers@postgresql.org; Tue, 19 Nov 2024 00:29:46 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5DD4A114017E; Mon, 18 Nov 2024 19:29:43 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 18 Nov 2024 19:29:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1731976183; x=1732062583; bh=5G0D1HyWyD IefjaxjDAnTlxZp9WEr9l7m8m/VxVGyUo=; b=WmlGN8rbMbzy44wp93UraKwMLj abEozfzfD5xczYln+vLl8TWCyMo7c6R5FUv2U9/Rg/EFnx3LwMXFsXkroBh8VHU0 zAk5av5ccHA+ouLMx1ts4iwjCRF6Kw+ogIkCJiWe/bn4XiVOrGbYV3ZZf9OosBgG hhZ2mYE045XrWTcYvLyyIg7eDRP40q35+1Ysnr4gjyvNDXgO6+ps3p9AYA3fLPSO Zu4o7nDDaPxLeaNvZ9z3YvNbSM0mruy0zpkb0BabCzTOI7wZ+1Pwk4NHRRwlNV3U lE2IAsYoBoHjQDTL24RXAQtcFart9Tt81nDUiZYOWZataFC1YYuUHf1TdRXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731976183; x=1732062583; bh=5G0D1HyWyDIefjaxjDAnTlxZp9WEr9l7m8m /VxVGyUo=; b=cI/OO1/rC7lSynz63CRjIuposUBohqV/aEsUGAl1Sc/A2wYgKRf EofEeF8k9k9tlXAWtmQl+PUloe1mDN0/A1diDJ1Rff0o5y67sfQrlAa+7kXPHozJ WAyD6tqNOK4Tn6B4yN/BgmcQLhyp5+QQXHonyjeEHdmhjZ24z80v5TMw/RBLDvTs dC7fbAdeWkuW0Px32jDVMzx9Y8RQ+FiU8LcpZLXs/51PipOakhzmqE8AuY5b1LpZ QqXAseFnTl+rBsdFNmC/HIF/VrCtJyqCUQV1JmE9+k3+YpcPO+0BN0CpmqTBaj2v kx98gNKr/R9usouYSFMpCcBitWPcwCEEJ8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfedugddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhgg tggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoe hmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleei fedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiipdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegsrhhutggvsehmohhmjhhirghnrdhushdprhgtphhtthhopehmrghs rghordhfuhhjihhisehoshhsrdhnthhtuggrthgrrdgtohhmpdhrtghpthhtohepsghtoh hgihifrghrrgihuhhushhhihesohhsshdrnhhtthgurghtrgdrtghomhdprhgtphhtthho pehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Nov 2024 19:29:40 -0500 (EST) Date: Tue, 19 Nov 2024 09:29:27 +0900 From: Michael Paquier To: Bruce Momjian Cc: Fujii Masao , Yushi Ogiwara , Pgsql Hackers Subject: Re: Making error message more user-friendly with spaces in a URI Message-ID: References: <645bd22a53c4da8a1bc7e1e52d9d3b52@oss.nttdata.com> <52329dff-28d7-4bc1-8d1a-88ef896d2c52@oss.nttdata.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="77iHS7bQa30njDvF" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --77iHS7bQa30njDvF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >>=20 >> ----------- >> psql: error: unexpected spaces found "a b", use percent-encoded spaces i= nstead >> ----------- >=20 > +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 --77iHS7bQa30njDvF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmc72+cACgkQnvQgOdby QH2XNw/+KqTOwGJhx2XveqXK5obhJm1wzcnYluyWaA2zHCMt+Xa8PixyJNzWhgZv Z82YM8YrIOLIaN7EoWjvUYuQanbzdnzeR4gQWzv0xJwmUXhXMtWdIj+sAathbq2a ASxlDtwMiTmVA2yuThlCSspMWlzEvrMQKaBVKR2IR1T/9/Gvb4gj/JgFPf1ibsQH 8OrsX+re5fpYZOOYuOBlbfuw/c7mMBp1CTEda9HWQaoFdUc0o4YlFbXpzYo/WZ/0 6yCGZh9JrTtYNM6BOvbAXsTOcVJnojYpf9gqVvRg+HUi5ZPf5dk1GkO79CfiKdJ6 Xg40LJc0wGUy1t3qW1Re+F/a3rzTWA5fG2AZ7uvl8GQbNXPQZo7eBeVnDw/sB02K Dpzf50/0iw/CRluxLiN0MqFbLjq7Lq/00KIgwCaaiicfmu461s1i7NleoYX0QSgN MUk117TwGCT2FVOxYszcnxdUGXiBtiOE2q2aIqSLzT1XA5Cuaa7QnpBUaex3/4HE IBM3BAV1J+YSw9GOda2dcLs3VlTSQpruD20caMDDdrGrwkh8ysbwGrWWSMaBqRmY Io5bl1b6xPReD9jg9cZhY9l2FvngNao8yd6nV/W3tEQf+4zRjgqOR3I3XtvxD3OZ oFYIqkKWXDFLr0KxkJFaHl2E+cEqOdAoW3mtdtlxC1vLsIBzY5s= =Ut1Z -----END PGP SIGNATURE----- --77iHS7bQa30njDvF--