Feed codacy

This commit is contained in:
Brady 2018-10-27 14:37:49 -05:00
parent ef8fd70475
commit 19e0e6d962
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class BaritoneGradleTask extends DefaultTask {
String artifactName, artifactVersion;
Path artifactPath, artifactUnoptimizedPath, artifactApiPath, artifactStandalonePath, proguardOut;
void verifyArtifacts() throws Exception {
void verifyArtifacts() throws IllegalStateException {
this.artifactName = getProject().getName();
this.artifactVersion = getProject().getVersion().toString();
@ -69,7 +69,7 @@ class BaritoneGradleTask extends DefaultTask {
this.proguardOut = this.getTemporaryFile(PROGUARD_EXPORT_PATH);
if (!Files.exists(this.artifactPath)) {
throw new Exception("Artifact not found! Run build first!");
throw new IllegalStateException("Artifact not found! Run build first!");
}
}