diff --git a/start.py b/start.py index 8953dc02f5..535c79a485 100644 --- a/start.py +++ b/start.py @@ -305,12 +305,19 @@ def run_disk_mapping_commands(mongo_url): args) raise RuntimeError(exc_msg) - except TypeError: - _print("Error in mapping drive") + except TypeError as exc: + _print("Error {} in mapping drive {}, {}".format(str(exc), + source, + destination)) raise else: + _print("disk mapping {}->{}".format(source, destination)) if not os.path.exists(destination): - os.symlink(source, destination) + try: + os.symlink(source, destination) + except OSError as exc: + _print("Error {} in mapping drive {}, {}".format( + str(exc), source, destination)) else: _print("Destination {} already exists".format(destination))