Skip to content

Commit 5316bcc

Browse files
Test with Error instead of RuntimeException
… test the Throwable catch instead of Exception.
1 parent 87e308a commit 5316bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4895,7 +4895,7 @@ public Subscription call(final Observer<String> observer) {
48954895
@Override
48964896
public void run() {
48974897
try {
4898-
observer.onError(new RuntimeException("failure"));
4898+
observer.onError(new Error("failure"));
48994899
} catch (Throwable e) {
49004900
// without an onError handler it has to just throw on whatever thread invokes it
49014901
exception.set(e);

0 commit comments

Comments
 (0)