diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-08-27 00:21:16 +0200 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-08-27 00:21:16 +0200 |
commit | cb1fd63a6f0bd74f92dcdb78e0439b1e50af4b0a (patch) | |
tree | 2ec90568ec8440b5d283fbe09699ed404d75f6ad | |
parent | 937d3a9cb76fefa27f108e7c7ef09d9fe9a926d6 (diff) | |
download | Git-Auto-Deploy-cb1fd63a6f0bd74f92dcdb78e0439b1e50af4b0a.zip Git-Auto-Deploy-cb1fd63a6f0bd74f92dcdb78e0439b1e50af4b0a.tar.gz Git-Auto-Deploy-cb1fd63a6f0bd74f92dcdb78e0439b1e50af4b0a.tar.bz2 |
Improved error message
-rw-r--r-- | gitautodeploy/httpserver.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gitautodeploy/httpserver.py b/gitautodeploy/httpserver.py index ffd6092..320efff 100644 --- a/gitautodeploy/httpserver.py +++ b/gitautodeploy/httpserver.py @@ -235,6 +235,14 @@ class WebhookRequestHandler(BaseHTTPRequestHandler): result.append(repo_result) continue + # If the path does not exist, a warning will be raised and no pull or + # deploy will be made. + if not os.path.isdir(repo_config['path']): + logger.error("The repository '%s' does not exist locally. Make sure it was pulled " % repo_config['path'] + + "properly without errors by reviewing the log.") + result.append(repo_result) + continue + running_lock = Lock(os.path.join(repo_config['path'], 'status_running')) waiting_lock = Lock(os.path.join(repo_config['path'], 'status_waiting')) try: |