Skip to content

Commit

Permalink
fix(subscribe): don't swallow internal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Sep 4, 2018
1 parent 3a193e9 commit e5ae182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/internal/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Operator } from './Operator';
import { Subscriber } from './Subscriber';
import { Subscription } from './Subscription';
import { TeardownLogic, OperatorFunction, PartialObserver, Subscribable } from './types';
import { reportError } from './util/reportError';
import { toSubscriber } from './util/toSubscriber';
import { iif } from './observable/iif';
import { throwError } from './observable/throwError';
Expand Down Expand Up @@ -226,7 +227,7 @@ export class Observable<T> implements Subscribable<T> {
sink.syncErrorThrown = true;
sink.syncErrorValue = err;
}
sink.error(err);
reportError(err, sink);
}
}

Expand Down

0 comments on commit e5ae182

Please sign in to comment.