Git - log branch name in case the branch cannot be found (#201117)

This commit is contained in:
Ladislau Szomoru 2023-12-18 13:15:48 +01:00 committed by GitHub
parent 6df54af21c
commit 4061a9a5e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2543,7 +2543,7 @@ export class Repository {
return branch; return branch;
} }
return Promise.reject<Branch>(new Error('No such branch')); return Promise.reject<Branch>(new Error(`No such branch: ${name}`));
} }
async getDefaultBranch(): Promise<Branch> { async getDefaultBranch(): Promise<Branch> {