Make most Modrinth dep errors non-fatal, improve err message (fixes #201)

This commit is contained in:
comp500
2023-03-15 02:41:35 +00:00
parent 1786e47806
commit 433218e3cf
2 changed files with 3 additions and 2 deletions

View File

@@ -296,7 +296,8 @@ func installVersion(project *modrinthApi.Project, version *modrinthApi.Version,
// Get latest version - could reuse version lookup data but it's not as easy (particularly since the version won't necessarily be the latest)
latestVersion, err := getLatestVersion(*project.ID, *project.Title, pack)
if err != nil {
return fmt.Errorf("failed to get latest version of dependency %v: %v", *project.ID, err)
fmt.Printf("Failed to get latest version of dependency %v: %v\n", *project.Title, err)
continue
}
for _, dep := range version.Dependencies {