Use local error pointer