Fixed some error messages
This commit is contained in:
@@ -120,9 +120,12 @@ class SubredditPage(Page):
|
||||
|
||||
submission_info = docs.SUBMISSION_FILE.format(name=name)
|
||||
with self.term.open_editor(submission_info) as text:
|
||||
if not text or '\n' not in text:
|
||||
if not text:
|
||||
self.term.show_notification('Canceled')
|
||||
return
|
||||
elif '\n' not in text:
|
||||
self.term.show_notification('Missing body')
|
||||
return
|
||||
|
||||
title, content = text.split('\n', 1)
|
||||
with self.term.loader('Posting', delay=0):
|
||||
|
||||
Reference in New Issue
Block a user