better error message

This commit is contained in:
Peter Cottle 2012-10-20 19:25:45 -07:00
parent 3aa66ea57d
commit 904a52fc50

View file

@ -236,7 +236,7 @@ GitEngine.prototype.makeBranch = function(id, target) {
id = this.validateBranchName(id);
if (this.refs[id]) {
throw new GitError({
msg: 'that branch id already exists!'
msg: 'that branch id either matches a commit hash or already exists!'
});
}