From e493749a83eb62ca07fda25b6ad016669a44dacc Mon Sep 17 00:00:00 2001 From: "A.P. Rajshekhar" Date: Wed, 7 Apr 2021 13:42:00 +0530 Subject: [PATCH] CCS-4343: Regression: Git import does not identify a wrong URL anymore. --- git2pantheon/api/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git2pantheon/api/upload.py b/git2pantheon/api/upload.py index e00664d..4a6dbab 100644 --- a/git2pantheon/api/upload.py +++ b/git2pantheon/api/upload.py @@ -31,7 +31,7 @@ def push_repo(): data = get_request_data() repo = create_repo_object(data) if not GitHelper.validate_git_url(repo.repo): - raise ApiError(message="Error in cloning the repo", status_code=503, + raise ApiError(message="Error in cloning the repo", status_code=400, details="Error cloning the repo due to invalid repo URL") parsed_url = GitHelper.parse_git_url(repo.repo)