diff --git a/slpkg/dialog_configs.py b/slpkg/dialog_configs.py index c42cd77d..aba1b135 100644 --- a/slpkg/dialog_configs.py +++ b/slpkg/dialog_configs.py @@ -83,11 +83,13 @@ class FormConfigs(Configs): for key, value in zip(self.configs['CONFIGS'].keys(), tags): if key in keys and value not in values: - self.dialogbox.msgbox(f"\nError value for {key}. It must be 'true' or 'false'\n", height=7, width=60) + self.dialogbox.msgbox(f"\nError: Value for '{key}', it must be 'true' or 'false.'\n", + height=7, width=60) return False - if key in ['DOWNLOADER'] and value not in ['wget', 'curl', 'lftp']: - self.dialogbox.msgbox(f"\nError value for {key}. It must be 'wget' or 'curl'\n", height=7, width=60) + if key in ['DOWNLOADER'] and value not in ['wget2', 'wget', 'curl', 'lftp']: + self.dialogbox.msgbox(f"\nError: Value for '{key}' not supported.\n", + height=7, width=60) return False return True