Added error checking

This commit is contained in:
= 2024-11-26 15:31:01 -07:00
parent 22c18915f5
commit e7f8de116e

View File

@ -501,6 +501,9 @@ func (i *InstanceManager) ImportMrpack(data io.Reader, name string) {
if err == io.EOF { if err == io.EOF {
break break
} }
if err != nil {
fmt.Printf("Error unpacking modpack file: %s\n", err)
}
if entry.Name == "modrinth.index.json" { if entry.Name == "modrinth.index.json" {
i.app.Status("Loading metadata") i.app.Status("Loading metadata")
file, _ := entry.Open() file, _ := entry.Open()