changeset 70 | 155fdea254c3 |
parent 45 | b58a7ea1aeb2 |
child 71 | 67e3234c26a9 |
--- a/cmd/toot.go Fri May 05 21:55:09 2017 +0000 +++ b/cmd/toot.go Sat May 06 18:16:08 2017 +0200 @@ -82,5 +82,9 @@ } } + if tootText == "" && len(ids) == 0 && opt.spoiler == "" { + return nil, errors.New("toot is empty") + } + return gClient.PostStatus(tootText, opt.inReplyToID, ids, opt.sensitive, opt.spoiler, opt.visibility) }