Skip to content

Commit 6c7260f

Browse files
authored
Added a more humane error message on no initial network (archlinux#3501)
* Added a more humane error message on no initial network * Fixed ruff complaints
1 parent 6d1a450 commit 6c7260f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

archinstall/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ def _fetch_arch_db() -> None:
4040
try:
4141
Pacman.run('-Sy')
4242
except Exception as e:
43+
error('Failed to sync Arch Linux package database.')
44+
if 'could not resolve host' in str(e).lower():
45+
error('Most likely due to a missing network connection or DNS issue.')
46+
error('Run archinstall --debug and check /var/log/archinstall/install.log for details.')
47+
4348
debug(f'Failed to sync Arch Linux package database: {e}')
4449
exit(1)
4550

0 commit comments

Comments
 (0)