lib/transports/sparkpost.js
function throwUpError(err) {
  if (err.name === 'SparkPostError')
    console.log(JSON.stringify(err.errors, null, 2));

  setTimeout(function() { throw err; });
}
function throwUpError(err) {
  if (err.name === 'SparkPostError')
    console.log(JSON.stringify(err.errors, null, 2));

  setTimeout(function() { throw err; });
}
function throwUpError ( err ) { if ( err . name === 'SparkPostError' ) console . log ( JSON . stringify ( err . errors , null , 2 ) ) ; setTimeout ( function ( ) { throw err ; } ) ; }
Logs error for sparkpost reponse

@param {Error} err
Logs error for sparkpost reponse