2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

feat: verbose error messages

This commit is contained in:
Aradhya 2022-05-15 23:20:15 +05:30
parent cb2b0b0d7c
commit 19f932513f

View File

@ -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}")