Added a more humane error message on no initial network (#3501)
* Added a more humane error message on no initial network * Fixed ruff complaints
This commit is contained in:
parent
6d1a450440
commit
6c7260fa33
|
|
@ -40,6 +40,11 @@ def _fetch_arch_db() -> None:
|
|||
try:
|
||||
Pacman.run('-Sy')
|
||||
except Exception as e:
|
||||
error('Failed to sync Arch Linux package database.')
|
||||
if 'could not resolve host' in str(e).lower():
|
||||
error('Most likely due to a missing network connection or DNS issue.')
|
||||
error('Run archinstall --debug and check /var/log/archinstall/install.log for details.')
|
||||
|
||||
debug(f'Failed to sync Arch Linux package database: {e}')
|
||||
exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue