Skip to content

Commit

Permalink
Change XML_URL_INVALID to XML_URL_MALFORMED
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Mar 4, 2016
1 parent eeec8b0 commit 833896d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public void onFailed(AppUpdaterError error) {
Log.e("AppUpdater", "UpdateFrom.GOOGLE_PLAY isn't valid: update varies by device.");
} else if (error == AppUpdaterError.GITHUB_USER_REPO_INVALID) {
throw new IllegalArgumentException("GitHub user or repo is empty!");
} else if (error == AppUpdaterError.XML_URL_INVALID) {
} else if (error == AppUpdaterError.XML_URL_MALFORMED) {
throw new IllegalArgumentException("XML file is not valid!");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected void onPreExecute() {
listener.onFailed(AppUpdaterError.GITHUB_USER_REPO_INVALID);
cancel(true);
} else if (updateFrom == UpdateFrom.XML && (xmlUrl == null || !UtilsLibrary.isStringAnUrl(xmlUrl))) {
listener.onFailed(AppUpdaterError.XML_URL_INVALID);
listener.onFailed(AppUpdaterError.XML_URL_MALFORMED);
cancel(true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ public enum AppUpdaterError {
/**
* URL for the XML file is not valid
*/
XML_URL_INVALID
XML_URL_MALFORMED
}

0 comments on commit 833896d

Please sign in to comment.