Is there a case where one of these calls would fail, but later ones succeed? I can't tell if the error returned here is used anywhere else (it's ignored later in this pull request), but it seems like we might want to keep accumulating the total.