init: fix error message when init directory already exists

The wording here is wrong. Just print the real cause.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-03-05 13:23:05 -08:00 committed by Carles Cufí
parent 1232f27b4c
commit a27941e036
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ class Init(_ProjectCommand):
except PermissionError:
log.die(f'Cannot initialize in {directory}: permission denied')
except FileExistsError:
log.die(f'Something else created {directory} concurrently')
log.die(f'Cannot initialize in {directory}: it already exists')
except Exception as e:
log.die(f"Can't create {directory}: {e}")