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

@@ -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?