nvtake: exit on unexpected config

This commit is contained in:
lilydjwg 2014-01-08 21:16:40 +08:00
parent a767da8a51
commit 5dd8a4df68
1 changed files with 3 additions and 2 deletions

View File

@ -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)