Added error checking
This commit is contained in:
parent
22c18915f5
commit
e7f8de116e
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user