Closed maureentsakiris closed 7 years ago
Generic error message in case
let msg = error.message ? error.message : 'an_error_occurred'
dispatch( { type: types.SET_ERROR_MSG, to: msg } )
And catching response error from Google (and XHR)
if( response.error ){
reject( Error( 'error_response_google' ) )
}