Updated for error messages

This commit is contained in:
Dimitris Zlatanidis 2023-03-16 22:07:50 +02:00
parent 284a140161
commit 534942b783

View file

@ -73,5 +73,5 @@ class Check(Configs):
""" Checking for empty table """
db = Path(self.db_path, self.database_name)
if not SBoQueries('').sbos() or not db.is_file():
raise SystemExit('\nYou need to update the package lists first.\n'
"Please run 'slpkg update'.\n")
self.utils.raise_error_message("You need to update the package lists first.\n"
" Please run 'slpkg update'")