lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [2/4] lucene-solr:master: addVersion.py (via scriptutil.py): fix name of the running script in error message
Date Fri, 13 May 2016 22:49:25 GMT
addVersion.py (via scriptutil.py): fix name of the running script in error message


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/1ec6a886
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/1ec6a886
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/1ec6a886

Branch: refs/heads/master
Commit: 1ec6a886f6b75d64d12c8b7ab1e0ac63f65680a1
Parents: 04a133f
Author: Steve Rowe <sarowe@apache.org>
Authored: Fri May 13 15:36:31 2016 -0400
Committer: Steve Rowe <sarowe@apache.org>
Committed: Fri May 13 17:25:58 2016 -0400

----------------------------------------------------------------------
 dev-tools/scripts/scriptutil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1ec6a886/dev-tools/scripts/scriptutil.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/scriptutil.py b/dev-tools/scripts/scriptutil.py
index 216bde4..419ccbe 100644
--- a/dev-tools/scripts/scriptutil.py
+++ b/dev-tools/scripts/scriptutil.py
@@ -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():


Mime
View raw message