From f6e7c333effa3d599a4b6d973dd919023acd9252 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 01:13:27 -0500 Subject: debugging Marshal() panic --- doPatch.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doPatch.go b/doPatch.go index 980f496..507b2fd 100644 --- a/doPatch.go +++ b/doPatch.go @@ -107,14 +107,19 @@ func doPatch() error { } func doPatchGet(newpb *forgepb.Sets) { + // var changed bool curpatches := forgepb.NewPatches() curpatches.Filename = "/tmp/curpatches.pb" if err := curpatches.Load(); err != nil { + curpatches.Save() + curpatches.Save() log.Info(err) + panic("no file") // return // // THIS IS NEEDED? NOTSURE curpatches = forgepb.NewPatches() curpatches.Filename = "/tmp/curpatches.pb" + curpatches.Save() } // newpb.PrintTable() for pset := range newpb.IterAll() { -- cgit v1.2.3