If I'm reading this code right, the only way you'll have an error here is the case in which you've already logged the error in `getApiLevel`, so I think this should just be:

`if (err) return cb(err);`

In general, the practice I've been following is:

- log the error where it's generated
- everywhere else, just pass it up the chain unless there's a specific reason to talk more about it