diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt index 47cc6886..94d9e109 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt @@ -231,10 +231,10 @@ class AetherDependency(val artifact: Artifact) : IClasspathDependency, Comparabl if (newFile != null) { CompletedFuture(newFile) } else { - CompletedFuture(File("DOESNOTEXIST $id")) // will be filtered out + throw KobaltException("Could not resolve $id") } } else { - CompletedFuture(File("DOESNOTEXIST $id")) + throw KobaltException("Could not resolve $id") } } }