summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}