summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-17 09:47:21 -0600
committerJeff Carr <[email protected]>2025-01-17 09:47:21 -0600
commitaf84727178d1fbe1df04a5f8ee536798f3761d6d (patch)
tree913b88f3f6b69420514df8bb758b55e4356b7cd2 /send.go
parent4f282cc30200c5896db2ae4677b20c6f8c1f1abc (diff)
show list patch error
Diffstat (limited to 'send.go')
-rw-r--r--send.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/send.go b/send.go
index 0b3834c..c296257 100644
--- a/send.go
+++ b/send.go
@@ -51,6 +51,9 @@ func listPatches() error {
last = strings.TrimSpace(line)
}
parts := strings.Fields(last)
+ if len(parts) == 0 {
+ return fmt.Errorf("listPatches() there are no patchsets at this time")
+ }
getPatch(parts[0])
return nil
}