Closed kitchen closed 8 years ago
having a framework for surfacing runtime errors to the user in a Nice Way™ would also be useful in #32
Execution doesn't continue if add_local_tweet()
returns False or raises an Exception.
Will look into handling those errors more elegantly tough, especially when considering #32.
https://github.com/buckket/twtxt/blob/master/twtxt/cli.py#L72-L73
If that fails, a nice error message is reported and execution continues as usual, including executing the
post_tweet_hook
. I feel like this is incorrect behavior, and that it should abort immediately if writing the file fails.