web_stub_path = old_options.web_stub_path
if not old_options.retry and not old_options.help and os.path.exists(dir) and os.listdir(dir):
- raise DirectoryExistsError
+ raise DirectoryExistsError(dir)
appname, _, version = appstr.partition('-')
application = app.getApplication(appname)
return options, args
class DirectoryExistsError(wizard.Error):
+ def __init__(self, dir=None, ):
+ self.dir = dir
def __str__(self):
- return "Directory already exists and is not empty"
+ return "Directory (%s) already exists and is not empty" % self.dir
class NeedsWebStubError(wizard.Error):
def __str__(self):