fix: report branch name and path on unmatch

This commit is contained in:
EnixCoda 2020-01-08 23:56:01 +08:00
parent f5e7096b04
commit 21f2999061
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -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 []
}
}