summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 01:13:27 -0500
committerJeff Carr <[email protected]>2025-10-07 01:13:27 -0500
commitf6e7c333effa3d599a4b6d973dd919023acd9252 (patch)
treed7a47e6489dc20738ccd50054dee6ecf7530fe22 /doPatch.go
parentf0ce0bc4660bf8f6a9457b5beaac7f3dc3679a2c (diff)
debugging Marshal() panic
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go5
1 files changed, 5 insertions, 0 deletions
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() {