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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Yushi Ogiwara <btogiwarayuushi(at)oss(dot)nttdata(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Making error message more user-friendly with spaces in a URI
Date: 2024-11-19 00:29:27
Message-ID: Zzvb5ybuAlB39sUV@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-11-19 00:50:09 Re: Fix an error while building test_radixtree.c with TEST_SHARED_RT
Previous Message Corey Huinker 2024-11-19 00:29:09 Re: Statistics Import and Export