mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 00:21:23 +00:00
feat: verbose error messages
This commit is contained in:
parent
cb2b0b0d7c
commit
19f932513f
@ -70,7 +70,7 @@ def is_valid_frappe_branch(frappe_path:str, frappe_branch:str):
|
|||||||
res = g.ls_remote("--heads", "--tags", frappe_path, frappe_branch)
|
res = g.ls_remote("--heads", "--tags", frappe_path, frappe_branch)
|
||||||
if not res:
|
if not res:
|
||||||
raise InvalidRemoteException(
|
raise InvalidRemoteException(
|
||||||
f"Invalid branch: {frappe_branch} for the remote {frappe_path}"
|
f"Invalid branch or tag: {frappe_branch} for the remote {frappe_path}"
|
||||||
)
|
)
|
||||||
except git.exc.GitCommandError:
|
except git.exc.GitCommandError:
|
||||||
raise InvalidRemoteException(f"Invalid frappe path: {frappe_path}")
|
raise InvalidRemoteException(f"Invalid frappe path: {frappe_path}")
|
||||||
|
Loading…
Reference in New Issue
Block a user