summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-23 09:02:00 -0500
committerJeff Carr <[email protected]>2025-09-23 09:02:00 -0500
commitbda5fb4fbe221e9bb5e64488882eb3e7b3187947 (patch)
tree520689af471238b838291413fac8c45060a537c5 /doPatch.go
parent1e3f4a3b9feb0cc8bfa450a311ccca2b5f36362f (diff)
set PB tables are working
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/doPatch.go b/doPatch.go
index 064bd31..d9eb301 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -45,7 +45,16 @@ func doPatchSubmit() error {
if err != nil {
return err
}
- _, _, err = pset.Patches.HttpPostVerbose(myServer(), "new")
+ if pset.Patches == nil {
+ log.Info("pset.Patches == nil")
+ return err
+ }
+ if pset.Patches.Len() == 0 {
+ log.Info("did not find any patches")
+ return nil
+ }
+ pset.Patches.PrintTable()
+ _, _, err = pset.HttpPost(myServer(), "new")
return err
}