Update error message

This commit is contained in:
Dimitris Zlatanidis 2023-01-16 22:22:24 +02:00
parent cda2792e44
commit 974913c8a0

View file

@ -113,8 +113,9 @@ class Configs:
# Choose the view mode
silent_mode: str = config['silent_mode']
except KeyError as error:
raise SystemExit(f"\nKeyError: {error}: in the configuration file "
"'/etc/slpkg/slpkg.toml'\n")
raise SystemExit(f"\nKeyError: {error}: in the configuration file '/etc/slpkg/slpkg.toml'.\n"
f"\nIf you have upgraded the '{prog_name}' probably you need to run:\n"
f"mv {etc_path}/{prog_name}.toml.new {etc_path}/{prog_name}.toml")
# Creating the paths if not exists
paths = [tmp_slpkg,