message: ref: Notify user when event failed to deliver because of digestion pipeline issue
diff: @@ -394,7 +394,6 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
  let finalEvent: Event | null = prepared;
  - try {
  const isInternalException = hint && hint.data && (hint.data as { [key: string]: any }).__sentry__ === true;
  if (isInternalException || !beforeSend) {
  this._getBackend().sendEvent(finalEvent);
  @@ -421,18 +420,17 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
  this._getBackend().sendEvent(finalEvent);
  resolve(finalEvent);
  }
  - } catch (exception) {
  - this.captureException(exception, {
  + })
  + .then(null, reason => {
  + this.captureException(reason, {
  data: {
  __sentry__: true,
  },
  - originalException: exception as Error,
  + originalException: reason as Error,
  });
  - reject('`beforeSend` threw an error, will not send event.');
  - }
  - })
  - .then(null, () => {
  - reject('`beforeSend` threw an error, will not send event.');
  + reject(
  + `Event processing pipeline threw an error, original event will not be sent. Details has been sent as a new event.\nReason: ${reason}`,
  + );
  });
  });
  }
  