From e7f8de116eace9cb16bad62e310e2a3581c60cc0 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 26 Nov 2024 15:31:01 -0700 Subject: [PATCH] Added error checking --- fclauncher/InstanceManager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fclauncher/InstanceManager.go b/fclauncher/InstanceManager.go index 781d28a..6b82b28 100644 --- a/fclauncher/InstanceManager.go +++ b/fclauncher/InstanceManager.go @@ -501,6 +501,9 @@ func (i *InstanceManager) ImportMrpack(data io.Reader, name string) { if err == io.EOF { break } + if err != nil { + fmt.Printf("Error unpacking modpack file: %s\n", err) + } if entry.Name == "modrinth.index.json" { i.app.Status("Loading metadata") file, _ := entry.Open()