Updated keyerror message

This commit is contained in:
Dimitris Zlatanidis 2022-12-26 18:46:15 +02:00
parent 5625d57de4
commit a811fbbb82

View file

@ -96,9 +96,9 @@ class Configs:
# Dialog utility
dialog: str = config['dialog']
except KeyError:
print("Error: check the configuration file "
"in the '/etc/slpkg/' folder.\n")
except KeyError as error:
print(f"Error: {error}: in the configuration file "
"'/etc/slpkg/slpkg.toml'\n")
# Creating the paths if not exists
paths = [tmp_slpkg,