I would feel better if we tested `err` here instead of `contents`.