diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 01:13:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 01:13:27 -0500 |
| commit | f6e7c333effa3d599a4b6d973dd919023acd9252 (patch) | |
| tree | d7a47e6489dc20738ccd50054dee6ecf7530fe22 /doPatch.go | |
| parent | f0ce0bc4660bf8f6a9457b5beaac7f3dc3679a2c (diff) | |
debugging Marshal() panic
Diffstat (limited to 'doPatch.go')
| -rw-r--r-- | doPatch.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() { |
