mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-21 00:54:31 +02:00
Reword "mod"/"addon"/"install" to clearer terms across all commands (fixes #138)
This commit is contained in:
@@ -115,7 +115,7 @@ var exportCmd = &cobra.Command{
|
||||
|
||||
pathForward, err := filepath.Rel(filepath.Dir(indexPath), dl.Mod.GetDestFilePath())
|
||||
if err != nil {
|
||||
fmt.Printf("Error resolving mod file: %s\n", err.Error())
|
||||
fmt.Printf("Error resolving external file: %s\n", err.Error())
|
||||
// TODO: exit(1)?
|
||||
continue
|
||||
}
|
||||
@@ -152,7 +152,7 @@ var exportCmd = &cobra.Command{
|
||||
// Modrinth URLs must be RFC3986
|
||||
u, err := core.ReencodeURL(dl.Mod.Download.URL)
|
||||
if err != nil {
|
||||
fmt.Printf("Error re-encoding mod URL: %s\n", err.Error())
|
||||
fmt.Printf("Error re-encoding download URL: %s\n", err.Error())
|
||||
u = dl.Mod.Download.URL
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ func (u mrUpdater) CheckUpdate(mods []core.Mod, mcVersion string, pack core.Pack
|
||||
for i, mod := range mods {
|
||||
rawData, ok := mod.GetParsedUpdateData("modrinth")
|
||||
if !ok {
|
||||
results[i] = core.UpdateCheck{Error: errors.New("couldn't parse mod data")}
|
||||
results[i] = core.UpdateCheck{Error: errors.New("failed to parse update metadata")}
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ func (u mrUpdater) DoUpdate(mods []*core.Mod, cachedState []interface{}) error {
|
||||
|
||||
algorithm, hash := getBestHash(file)
|
||||
if algorithm == "" {
|
||||
return errors.New("file for mod " + mod.Name + " doesn't have a hash")
|
||||
return errors.New("file for project " + mod.Name + " doesn't have a valid hash")
|
||||
}
|
||||
|
||||
mod.FileName = *file.Filename
|
||||
|
Reference in New Issue
Block a user