Less ambiguous error text

This commit is contained in:
SiboVG 2022-11-23 18:15:14 +01:00
parent 005202cbc5
commit 1fe7055b99

View File

@ -70,7 +70,7 @@ public class UpdateInfoRetriever {
*/
public boolean isRunning() {
if (this.fetcher == null) {
throw new IllegalStateException("startFetchUpdateInfo() has not been called");
throw new IllegalStateException("Fetcher has not been called yet");
}
return this.fetcher.isAlive();
}
@ -91,7 +91,7 @@ public class UpdateInfoRetriever {
*/
public UpdateInfo getUpdateInfo() {
if (this.fetcher == null) {
throw new IllegalStateException("startFetchUpdateInfo() has not been called");
throw new IllegalStateException("Fetcher has not been called yet");
}
return this.fetcher.info;
}