Nit: Reuse err variable.