1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Throw if a jar file can't be found.

This commit is contained in:
Cedric Beust 2016-07-28 23:30:44 -08:00
parent 692f9bcbab
commit 5a7a6d8277

View file

@ -231,10 +231,10 @@ class AetherDependency(val artifact: Artifact) : IClasspathDependency, Comparabl
if (newFile != null) { if (newFile != null) {
CompletedFuture(newFile) CompletedFuture(newFile)
} else { } else {
CompletedFuture(File("DOESNOTEXIST $id")) // will be filtered out throw KobaltException("Could not resolve $id")
} }
} else { } else {
CompletedFuture(File("DOESNOTEXIST $id")) throw KobaltException("Could not resolve $id")
} }
} }
} }