From 67cdc890025dc0866f9c4c53a88dd5ee44555d38 Mon Sep 17 00:00:00 2001 From: Lord Anton Hvornum Date: Sun, 8 Nov 2020 15:28:49 +0100 Subject: Added additional debug on error in selected profiles --- archinstall/__main__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archinstall') 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 -- cgit v1.2.3-70-g09d2