Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves container error message for easier debugging #40

Merged
merged 1 commit into from
Sep 17, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions rce-core/rce/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@ def __init__(self, client, nr, uid, data):

if os.path.isdir(confDir):
raise ValueError('There is already a configuration directory for '
"'{0}'.".format(name))
"'{0}' \n Please remove it manually if the engine "
'did not shut down correctly on last execution and '
'you are sure it is not in use. \n dir: {1}.'.format(name, confDir))

if os.path.isdir(dataDir):
raise ValueError('There is already a data directory for '
"'{0}'.".format(name))

"'{0}' \n Please remove it manually if the engine "
'did not shut down correctly on last execution and '
'you are sure it is not in use. \n dir: {1}.'.format(name, dataDir))
os.mkdir(confDir)
os.mkdir(dataDir)

Expand Down