forked from j62/ctbrec
Show error message on Followed tab, if credentials are missing
This commit is contained in:
parent
aa093c0ec1
commit
6fcdce673d
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue