Fix error index
Simplify wrong pg error info