diff --git a/slackpost.py b/slackpost.py index ef7c637..f887e4e 100755 --- a/slackpost.py +++ b/slackpost.py @@ -61,7 +61,7 @@ print(text) thread = slack.find_thread(thread_id) if thread == None: - print("No such thread!") + print("No such thread: %s!" % thread_id) sys.exit(1) -channel.post(text) +thread.post(text)