diff --git a/nvchecker/tools.py b/nvchecker/tools.py index 21aede6..300bf22 100644 --- a/nvchecker/tools.py +++ b/nvchecker/tools.py @@ -19,9 +19,10 @@ def take(): s = core.Source(args.file) if not s.oldver or not s.newver: - logger.error( - "%s doesn't have both 'oldver' and 'newver' set, ignoring.", s + logger.fatal( + "%s doesn't have both 'oldver' and 'newver' set.", s ) + sys.exit(2) oldvers = core.read_verfile(s.oldver) newvers = core.read_verfile(s.newver)