Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLord Anton Hvornum <anton.feeds@gmail.com>2020-11-08 15:28:49 +0100
committerLord Anton Hvornum <anton.feeds@gmail.com>2020-11-08 15:28:49 +0100
commit67cdc890025dc0866f9c4c53a88dd5ee44555d38 (patch)
treeb9d4125ce6fc562ace3daf8841d9d763dbbf8921
parent15e68ef49d07fca9e5890e10f90378ba25ed3d8f (diff)
Added additional debug on error in selected profiles
-rw-r--r--archinstall/__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archinstall/__main__.py b/archinstall/__main__.py
index eaf19398..4575a7e1 100644
--- a/archinstall/__main__.py
+++ b/archinstall/__main__.py
@@ -3,6 +3,7 @@ import archinstall
import sys
import os
import glob
+import traceback
import urllib.request
# TODO: Learn the dark arts of argparse...
@@ -64,6 +65,7 @@ def run_as_a_module():
exec(profile) # Is this is very safe?
except Exception as err:
print(f"Error in profile {sys.argv[1]}: {err}")
+ traceback.print_exc(file=sys.stdout)
sys.exit(1) # Should prompt for another profile path instead