Skip to content

Commit

Permalink
Merge pull request #40 from Boanerghes/helpcontainerfix
Browse files Browse the repository at this point in the history
Improves container error message for easier debugging
  • Loading branch information
dhananjaysathe committed Sep 17, 2013
2 parents e8ad179 + 9c3584f commit 8f66723
Showing 1 changed file with 6 additions and 3 deletions.
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

0 comments on commit 8f66723

Please sign in to comment.