Mercurial > kallithea
diff rhodecode/lib/db_manage.py @ 1399:4134af931e91 beta
Added info about sys.exit cause
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 29 Jun 2011 01:47:59 +0200 |
parents | 8eda822931c9 |
children | b50348816a80 |
line wrap: on
line diff
--- a/rhodecode/lib/db_manage.py Wed Jun 29 01:09:44 2011 +0200 +++ b/rhodecode/lib/db_manage.py Wed Jun 29 01:47:59 2011 +0200 @@ -347,8 +347,9 @@ path_ok = False log.error('No write permission to given path %s', path) + if retries == 0: - sys.exit() + sys.exit('max retries reached') if path_ok is False: retries -= 1 return self.config_prompt(test_repo_path, retries)