mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: report branch name and path on unmatch
This commit is contained in:
parent
f5e7096b04
commit
21f2999061
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ export function getCurrentPath(branchName = '') {
|
|||
splitBranchName.shift()
|
||||
path.shift()
|
||||
} else {
|
||||
raiseError(new Error(`branch name and path prefix not match`))
|
||||
raiseError(new Error(`branch name and path prefix not match`), {
|
||||
branchName,
|
||||
path: parse().path,
|
||||
})
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue