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 5, 2018
1 parent 0c13000 commit 673a5bd
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 673a5bd

Please sign in to comment.