Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSecondThundeR <awayfromgalaxy@gmail.com>2021-04-20 17:10:28 +0300
committerSecondThundeR <awayfromgalaxy@gmail.com>2021-04-20 17:10:28 +0300
commit8d9a542962f8c2f2d0a31c0035b4bf63ef1583cb (patch)
tree83888c3b1d1979594edcef36be807004693c5cf0
parent3facc2e58d6b430e47d0eba42dc6d11879c36017 (diff)
Add clarifying log text for generic_select
-rw-r--r--archinstall/lib/user_interaction.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 546ee3ee..1cfe5490 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -256,17 +256,17 @@ def generic_select(options, input_text="Select one of the above by index or abso
# Checking if options are different from `list` or `dict`
if type(options) not in [list, dict]:
- log(" * It looks like there are something wrong with provided options. Maybe it's time to open an issue on GitHub! * ", fg='red')
- log(" * Here are the link: https://github.com/archlinux/archinstall/issues * ", fg='yellow')
+ log(f" * Generic select doesn't support ({type(options)}) as type of options * ", fg='red')
+ log(" * If problem persists, please create an issue on https://github.com/archlinux/archinstall/issues * ", fg='yellow')
raise RequirementError("generic_select() requires list or dictionary as options.")
# To allow only `list` and `dict`, converting values of options here.
# Therefore, now we can only provide the dictionary itself
if type(options) == dict: options = list(options.values())
if sort: options = sorted(options) # As we pass only list and dict (converted to list), we can skip converting to list
if len(options) == 0:
- log(" * It looks like there are no options to choose from. Maybe it's time to open an issue on GitHub! * ", fg='red')
- log(" * Here are the link: https://github.com/archlinux/archinstall/issues * ", fg='yellow')
- raise RequirementError('generic_select() requires at least one option to operate.')
+ log(f" * Generic select didn't find any options to choose from * ", fg='red')
+ log(" * If problem persists, please create an issue on https://github.com/archlinux/archinstall/issues * ", fg='yellow')
+ raise RequirementError('generic_select() requires at least one option to proceed.')
# Added ability to disable the output of options items,