[Pg] make errstr public