Update error checking example