Add error-handling for PG:Error.