mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
Updated for error messages
This commit is contained in:
parent
faae341112
commit
b7c33ad523
3 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
Updated:
|
||||
- For empty arguments
|
||||
- Checks for invalid options
|
||||
- The error messages
|
||||
Added:
|
||||
- Vimdiff in the slpkg_new-configs file (Thanks to tkor)
|
||||
|
||||
|
|
|
@ -471,7 +471,8 @@ class Argparse(Configs):
|
|||
def clean_tmp(self) -> None:
|
||||
if len(self.args) == 1:
|
||||
|
||||
print(f"\n[{self.bred}WARNING{self.endc}]: All the files in the '{self.tmp_path}{self.prog_name}' "
|
||||
print(f"\n{self.prog_name}: {self.bred}WARNING{self.endc}: All the files in the "
|
||||
f"'{self.tmp_path}{self.prog_name}' "
|
||||
f"folder will delete!")
|
||||
|
||||
views = ViewMessage(self.flags)
|
||||
|
|
|
@ -137,7 +137,7 @@ class UpdateRepository(Configs):
|
|||
|
||||
def drop_the_tables(self):
|
||||
""" Drop all the tables from the database. """
|
||||
print(f'[{self.bred}WARNING{self.endc}]: All the data from the database will be deleted!')
|
||||
print(f'\n{self.prog_name}: {self.bred}WARNING{self.endc}: All the data from the database will be deleted!')
|
||||
self.view.question()
|
||||
|
||||
tables: list = [PonceTable.__table__,
|
||||
|
|
Loading…
Reference in a new issue