From 36d707e6222c1f2b8dc51d90151966fc9db2d8f1 Mon Sep 17 00:00:00 2001 From: Draylar Date: Sun, 18 Oct 2020 16:00:59 -0500 Subject: [PATCH] Print file name in file error messages --- curseforge/export.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curseforge/export.go b/curseforge/export.go index 4bda078..0af646e 100644 --- a/curseforge/export.go +++ b/curseforge/export.go @@ -114,13 +114,13 @@ var exportCmd = &cobra.Command{ } modFile, err := exp.Create(filepath.ToSlash(filepath.Join("overrides", path))) if err != nil { - fmt.Printf("Error creating mod file: %s\n", err.Error()) + fmt.Printf("Error creating mod file %s: %s\n", path, err.Error()) // TODO: exit(1)? continue } err = mod.DownloadFile(modFile) if err != nil { - fmt.Printf("Error downloading mod file: %s\n", err.Error()) + fmt.Printf("Error downloading mod file %s: %s\n", path, err.Error()) // TODO: exit(1)? continue } @@ -237,7 +237,7 @@ func loadMods(index core.Index) []core.Mod { for _, v := range modPaths { modData, err := core.LoadMod(v) if err != nil { - fmt.Printf("Error reading mod file: %s\n", err.Error()) + fmt.Printf("Error reading mod file %s: %s\n", v, err.Error()) // TODO: exit(1)? continue }