summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
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
}