Skip to content

Commit 2b76833

Browse files
committed
Added a more humane error message on no initial network
1 parent d3f32f3 commit 2b76833

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)