errmsg("... because ...") - Mailing list pgsql-hackers

From Alvaro Herrera
Subject errmsg("... because ...")
Date
Msg-id 20041210184408.GA7357@surnet.cl
Whole thread Raw
Responses Re: errmsg("... because ...")
Re: errmsg("... because ...")
List pgsql-hackers
Hackers,

There are a bunch of error messages saying something like

"cannot foo because bar"

For example,

errmsg("cannot assign to field \"%s\" of column \"%s\" because its type %s is not a composite type")

What do you think of changing those to use errdetail in addition to
errmsg?  So this particular example would become something like

errmsg("cannot assign to field \"%s\" of column \"%s\"),
errdetail("Its type %s is not a composite type.")


There are some of them that should probably be left alone, like

errmsg("terminating connection because of crash of another server process")

I see around a dozen messages in the backend that could be changed like
this.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La gente vulgar solo piensa en pasar el tiempo;
el que tiene talento, en aprovecharlo"



pgsql-hackers by date:

Previous
From: Horak Daniel
Date:
Subject: Re: apparent problem on linux/s390
Next
From: Andrew Dunstan
Date:
Subject: Re: Call for port reports