Let's output the right error messages for wrong object types.

2021-07-14 10:57:41 Michael Paquier (michael-kun) Closed in commitfest 2021-07 with status: Committed 2021-07-14 10:57:41 Michael Paquier (michael-kun) Changed committer to michael-kun 2021-07-08 08:03:05 Peter Eisentraut (petere) New status: Waiting on Author 2021-07-08 08:03:02 Peter Eisentraut (petere) Added petere as reviewer 2021-06-29 20:13:14 ahsan hadi (ahsan.hadi) Posted review with messageid <162499759446.1167.15836480061469734269.pgcf@coridan.postgresql.org> 2021-06-29 20:11:04 ahsan hadi (ahsan.hadi) Added ahsan.hadi as reviewer 2021-05-07 04:52:20 Kyotaro Horiguchi (horiguti) Changed authors to Kyotaro Horiguchi (horiguti) 2021-05-07 04:52:20 Kyotaro Horiguchi (horiguti) Changed name to Let's output the right error messages for wrong object types. 2021-05-07 04:51:28 Kyotaro Horiguchi (horiguti) Attached mail thread 20210216.181415.368926598204753659.horikyota.ntt@gmail.com 2021-05-07 04:51:28 Kyotaro Horiguchi (horiguti) Created patch record