addVersion.py (via scriptutil.py): fix name of the running script in error message

This commit is contained in:
Steve Rowe 2016-05-13 15:36:31 -04:00
parent 6e52d62f69
commit e9e8e3ead9
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def find_branch_type():
return BranchType.stable
if re.match(r'branch_(\d+)_(\d+)', branchName.decode('UTF-8')):
return BranchType.release
raise Exception('Cannot run bumpVersion.py on feature branch')
raise Exception('Cannot run %s on feature branch' % sys.argv[0].rsplit('/', 1)[-1])
version_prop_re = re.compile('version\.base=(.*)')
def find_current_version():