Fix PG exception output