Exit with nonzero code on error - toot - Unnamed repository; edit this file 'description' to name the repository.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit e46a817f099c6917b6955203f74898afce4ce33a
 (DIR) parent 39c2cc661d73c6c6c9a455579691f9895e2c7947
 (HTM) Author: Ivan Habunek <ivan@habunek.com>
       Date:   Mon,  8 May 2017 09:11:20 +0200
       
       Exit with nonzero code on error
       
       fixes #14
       
       Diffstat:
         toot/console.py                     |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/toot/console.py b/toot/console.py
       @@ -285,5 +285,7 @@ def main():
                run_command(app, user, command_name, args)
            except ConsoleError as e:
                print_err(str(e))
       +        sys.exit(1)
            except api.ApiError as e:
                print_err(str(e))
       +        sys.exit(1)