Try to cleanup files when failing better, should hopefully increase the changes of things working on a subsequent run.

Also improve the error message a little.
This commit is contained in:
modmuss50
2021-03-18 22:00:06 +00:00
parent c033246a9f
commit 8e424f3f50
4 changed files with 14 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ public class LoomDependencyManager {
try {
provider.provide(info, afterTasks::add);
} catch (Exception e) {
throw new RuntimeException("Failed to provide " + dependency.getGroup() + ":" + dependency.getName() + ":" + dependency.getVersion() + " : " + e.toString(), e);
throw new RuntimeException("Failed to provide " + dependency.getGroup() + ":" + dependency.getName() + ":" + dependency.getVersion() + " : " + e.toString() + "\n\tEnsure minecraft is not open and try running with --refresh-dependencies. Use --stacktrace to see the full stacktrace.", e);
}
}
}