ereport rather than elog catalog insertion error

Inserting into catalogs isn't out of the question - it's not a "can't happen"
failure - so give it a proper ereport call instead.