at some point it's almost worth defining an `logError(err)` method to encapsulate this..