mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-04 11:44:27 +02:00
better error message
This commit is contained in:
parent
3aa66ea57d
commit
904a52fc50
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ GitEngine.prototype.makeBranch = function(id, target) {
|
||||||
id = this.validateBranchName(id);
|
id = this.validateBranchName(id);
|
||||||
if (this.refs[id]) {
|
if (this.refs[id]) {
|
||||||
throw new GitError({
|
throw new GitError({
|
||||||
msg: 'that branch id already exists!'
|
msg: 'that branch id either matches a commit hash or already exists!'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue