Skip to content

Commit

Permalink
fix: #25 add missing error reporting so its clear why an addon failed…
Browse files Browse the repository at this point in the history
… to install
  • Loading branch information
m-triassi committed Feb 18, 2024
1 parent 578d721 commit 91b75e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ update that addon in isolation.`,
fmt.Printf("Unpacking... ")
err = curseforge.InstallAddon(file, dest)
if err != nil {
panic(fmt.Errorf("Failed to install addon in target destination"))
panic(fmt.Errorf("Failed to install addon in target destination: %w", err))
}

list := viper.GetIntSlice("addons")
Expand Down

0 comments on commit 91b75e8

Please sign in to comment.