Slightly improve error handling

* Fix: Do not swallow traces when crashing before log init (e.g.
  during argument parsing)
* Show a link to the troubleshooting page, when an error happens
* (Formatting done by autopep8 in pmb/config/init.py)
This commit is contained in:
Oliver Smith 2017-06-27 00:23:21 +02:00
parent 060e5a5876
commit fcc5501a44
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 8 additions and 5 deletions

View file

@ -39,7 +39,7 @@ def init(args):
logging.info("Location of the 'work' path. Multiple chroots (native,"
" device arch, device rootfs) will be created in there.")
cfg["pmbootstrap"]["work"] = os.path.expanduser(pmb.helpers.cli.ask(args, "Work path",
None, args.work, False))
None, args.work, False))
os.makedirs(cfg["pmbootstrap"]["work"], 0o700, True)
# Parallel job count