We need to check that `error != NULL` first.