forked from j62/ctbrec
1
0
Fork 0

Show error message on Followed tab, if credentials are missing

This commit is contained in:
0xboobface 2019-01-24 15:52:25 +01:00
parent aa093c0ec1
commit 6fcdce673d
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ public class LiveJasminFollowedUpdateService extends PaginatedScheduledService {
return new Task<List<Model>>() {
@Override
public List<Model> call() throws IOException {
if(!liveJasmin.credentialsAvailable()) {
throw new RuntimeException("Credentials missing");
}
boolean loggedIn = SiteUiFactory.getUi(liveJasmin).login();
if(!loggedIn) {
throw new RuntimeException("Couldn't login to livejasmin");