diff --git a/modrinth/install.go b/modrinth/install.go index 692f79a..8ef98de 100644 --- a/modrinth/install.go +++ b/modrinth/install.go @@ -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 { diff --git a/modrinth/modrinth.go b/modrinth/modrinth.go index 1d0e24a..4ff74ec 100644 --- a/modrinth/modrinth.go +++ b/modrinth/modrinth.go @@ -287,7 +287,7 @@ func getLatestVersion(projectID string, name string, pack core.Pack) (*modrinthA } if len(result) == 0 { // TODO: retry with datapack specified, to determine what the issue is? or just request all and filter afterwards - return nil, errors.New("no valid versions found\nUse the acceptable-game-versions option to accept more game versions\nTo use datapacks, add a datapack loader mod and specify the datapack-folder option with the folder this mod loads datapacks from") + return nil, errors.New("no valid versions found\n\tUse the acceptable-game-versions option to accept more game versions\n\tTo use datapacks, add a datapack loader mod and specify the datapack-folder option with the folder this mod loads datapacks from") } // TODO: option to always compare using flexver?