be just a touch more informative about what went wrong

This commit is contained in:
Martin A. Brown 2016-03-07 08:13:50 -08:00
parent 88ee1bf5fa
commit bfc8328181
1 changed files with 5 additions and 1 deletions

View File

@ -367,7 +367,11 @@ def run(argv):
builddir = os.path.join(builddir, 'ldp-builddir')
if not arg_isdirectory(builddir):
logger.debug("Creating build directory %s.", builddir)
os.mkdir(builddir)
try:
os.mkdir(builddir)
except OSError:
logger.critical("Could not make --builddir %s.", builddir)
raise
config.builddir = builddir
if not config.pubdir: