mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Better error handling.
This commit is contained in:
parent
4cf010f7e0
commit
391df0c4a3
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Aether(val localRepo: File) {
|
|||
val newArtifact = DefaultArtifact(artifact.groupId, artifact.artifactId, artifact.extension,
|
||||
resolved.highestVersion.toString())
|
||||
val artifactResult = resolve(newArtifact)
|
||||
if (artifactResult != null) {
|
||||
if (artifactResult != null && artifactResult.size > 0) {
|
||||
return artifactResult[0]
|
||||
} else {
|
||||
throw KobaltException("Couldn't find latest artifact for $group:$artifactId")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue