Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool
Date: 2017-09-18 11:04:36
Message-ID: CA+OCxoy5rp9PK55m476-Fwia70x2KSnRY-Bah=tsdFxXNrg5wg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

On Mon, Sep 18, 2017 at 10:54 AM, Murtuza Zabuawala <
murtuza(dot)zabuawala(at)enterprisedb(dot)com> wrote:

> Hi,
>
> PFA minor patch to fix the issue where logic to extract the error using
> RegEX from error message was incorrect in Query tool(History tab).
> RM#2700
>

Thanks - applied, but....

- Could you please add some JS tests to ensure parseErrorMessage continues
to work as it should.

- I'm not happy with the fact that we still display:

can't execute an empty query ********** Error **********

Can we not make that look more like a real error message? At the very least
something like:

Error: can't execute an empty query

>
> Another minor issue which I observed on login page is that close button on
> alert is little misaligned(screenshot attached).
>
>
Also applied - thanks!

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-09-18 11:36:07 pgAdmin 4 commit: Fix tablespace move prompt message. Fixes #2708
Previous Message Dave Page 2017-09-18 10:57:47 pgAdmin 4 commit: Correct alignment of the X button on dismissable aler