Commit 9f39e38e authored by Leonardo Aramaki's avatar Leonardo Aramaki

Report any connection attempt error

parent b2c0d021
package chat.rocket.android.fragment.add_server;
import chat.rocket.android.BackgroundLooper;
import chat.rocket.android.helper.Logger;
import chat.rocket.android.helper.OkHttpHelper;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
......@@ -46,7 +47,10 @@ public class InputHostnamePresenter extends BasePresenter<InputHostnameContract.
view.showInvalidServerError();
}
},
throwable -> view.showConnectionError());
throwable -> {
Logger.report(throwable);
view.showConnectionError();
});
addSubscription(subscription);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment