errmsg("... because ...")

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема errmsg("... because ...")
Дата
Msg-id 20041210184408.GA7357@surnet.cl
обсуждение исходный текст
Ответы Re: errmsg("... because ...")
Re: errmsg("... because ...")
Список 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 по дате отправления:

Предыдущее
От: Horak Daniel
Дата:
Сообщение: Re: apparent problem on linux/s390
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Call for port reports