Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-08 23:12:49 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-08 23:12:49 +0000
commit18c811ac967110d9371cc5dcdcd44382b25b0494 (patch)
tree106687cebfa94c53b836df1fa76389d2beb5ca4f /archinstall/lib/profiles.py
parent5ad6ea26c8ad12f394b4e9f8a577c935f1f29785 (diff)
Added some more debugging
Diffstat (limited to 'archinstall/lib/profiles.py')
-rw-r--r--archinstall/lib/profiles.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 015d41b7..f20726d2 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -65,11 +65,13 @@ def find_installation_script(profile):
with open(profile, 'r') as file:
return Script(file.read(), filename=os.path.basename(profile))
except FileNotFoundError:
- return ProfileNotFound(f"File {profile} does not exist")
+ cwd = os.path.abspath(f'{os.path.dirname(__file__)}')
+ examples = f"{cwd}/examples"
+ raise ProfileNotFound(f"File {profile} does not exist in {examples}")
elif parsed_url.scheme in ('https', 'http'):
return Script(urllib.request.urlopen(profile).read().decode('utf-8'), filename=os.path.basename(profile))
else:
- return ProfileNotFound(f"Cannot handle scheme {parsed_url.scheme}")
+ raise ProfileNotFound(f"Cannot handle scheme {parsed_url.scheme}")
class Imported():