Eh, this is kind of awkward. I should test for err != nil instead and move the happy path below for consistency.