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:
parent
1232f27b4c
commit
a27941e036
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue