Update error checking method.