From 21f2999061186e103f387aeda7be05ce6928ef1e Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Wed, 8 Jan 2020 23:56:01 +0800 Subject: [PATCH] fix: report branch name and path on unmatch --- src/utils/URLHelper.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/URLHelper.ts b/src/utils/URLHelper.ts index 0f94215..0907583 100644 --- a/src/utils/URLHelper.ts +++ b/src/utils/URLHelper.ts @@ -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 [] } }