mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Exit with nonzero code on error
This commit is contained in:
parent
9dc67a7ff1
commit
0fff0a4de1
@ -1,5 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from argparse import ArgumentParser, ArgumentTypeError
|
||||
from collections import namedtuple
|
||||
|
||||
@ -125,3 +127,4 @@ def main():
|
||||
args.func(**args.__dict__)
|
||||
except ConsoleError as e:
|
||||
print_err(e)
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user