function _logErrorCallback(error, phase) {
  if (error) {
    logger.error(error, `An error occurred during ${phase}`)
  }
}
Helper function for logging if an error occurs, and where

@private
@param {Error} error If defined, the error that occurred
@param {string} phase Where in the process the error happened
@returns {void}