mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Better error messages for mod update errors
This commit is contained in:
parent
5ef3358285
commit
492340dfe6
@ -75,14 +75,13 @@ var updateCmd = &cobra.Command{
|
||||
checks, err := core.Updaters[k].CheckUpdate(v, mcVersion, pack)
|
||||
if err != nil {
|
||||
// TODO: do we return err code 1?
|
||||
fmt.Println(err.Error())
|
||||
fmt.Printf("Failed to check updates for %s: %s\n", k, err.Error())
|
||||
continue
|
||||
}
|
||||
for i, check := range checks {
|
||||
if check.Error != nil {
|
||||
// TODO: do we return err code 1?
|
||||
// TODO: better error message?
|
||||
fmt.Println(check.Error.Error())
|
||||
fmt.Printf("Failed to check updates for %s: %s\n", v[i].Name, check.Error.Error())
|
||||
continue
|
||||
}
|
||||
if check.UpdateAvailable {
|
||||
|
Loading…
x
Reference in New Issue
Block a user