title: Firing multiple actions on catch error
body: <p>I am struggling to figure out how to fire multiple actions in a <code>catch</code> error handler in my epics.</p>
  
  <p>I have successfully figured out how to fire multiple actions on a successful async call in my epics using the thunk-middleware. See below:</p>
  
  <pre><code>const editDomainsEpic = (action$) =&gt;
    action$
      .ofType(EDIT_DOMAINS)
      .mergeMap((action) =&gt;
        Rx.Observable.fromPromise(api.editDomains(action.payload))
          // Here we are using Redux thunk middleware to execute
          // a function instead of just dispatching an action
          // so that we can disptach two actions
          // ----------------- vvv
          .map((domain) =&gt; (dispatch) =&gt; {
            // Display Growl Notifications
            dispatch(
              displayGrowlNotification(
                MESSAGE_TYPES.SUCCESS,
                `${domain.name} was saved`
              )
            )
            // Fire Success Action
            dispatch({
              type: EDIT_DOMAINS_SUCCESS,
              payload: { domain }
            })
          })
          .catch((error) =&gt; Rx.Observable.of({
            type: EDIT_DOMAINS_ERROR,
            payload: { error }
          }))
          .takeUntil(action$.ofType(EDIT_DOMAINS_CANCEL))
      )
  </code></pre>
  
  <p>Can anyone guide me to how I can have the <code>catch</code> return or fire two observable actions that will get dispatched similarly to how I did with the success?</p>