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 utility
dialog: str = config['dialog'] dialog: str = config['dialog']
except KeyError: except KeyError as error:
print("Error: check the configuration file " print(f"Error: {error}: in the configuration file "
"in the '/etc/slpkg/' folder.\n") "'/etc/slpkg/slpkg.toml'\n")
# Creating the paths if not exists # Creating the paths if not exists
paths = [tmp_slpkg, paths = [tmp_slpkg,