I'd make `list(error)[0]` an intermediate variable so we're not repeating it.