Slight logging improvement when menuconfig fails
Created by: lawl
I murked up the APKBUILD i was working on and menuconfig started failing with the following error:
(001126) [07:42:56] Copy kernel config back to aport-folder
(001126) [07:42:56] ERROR: No kernel config generated!
(001126) [07:42:56] Run 'pmbootstrap log' for details.
(001126) [07:42:56] See also: <https://postmarketos.org/troubleshooting>
(001126) [07:42:56] Traceback (most recent call last):
File "/home/user/pmbootstrap/pmb/__init__.py", line 59, in main
getattr(frontend, args.action)(args)
File "/home/user/pmbootstrap/pmb/helpers/frontend.py", line 213, in menuconfig
pmb.build.menuconfig(args, args.package)
File "/home/user/pmbootstrap/pmb/build/menuconfig.py", line 97, in menuconfig
raise RuntimeError("No kernel config generated!")
RuntimeError: No kernel config generated!
which isn't very helpful in figuring out what's wrong, So this is a slight improvement to make it log
RuntimeError: No kernel config generated! Could not read file: /home/user/.local/var/pmbootstrap/chroot_native/home/pmos/build/config-.aarch64
instead, which helps you figuring out you accidentally hit J
on the _flavour
line.