From 2ecb5d407fc1d719b2cb13542f577a963f7e771a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 18 Jun 2022 10:05:55 +0300 Subject: [PATCH] Updated error messages --- slpkg/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index ea5a75b6..ecaa5ba6 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -25,15 +25,14 @@ class Check: self.database() for sbo in slackbuilds: if not SBoQueries(sbo).slackbuild(): - raise SystemExit(f'Error: Package {sbo} does not exists.') + raise SystemExit(f'\nPackage {sbo} does not exists.\n') def unsupported(self, slackbuilds): ''' Checking for unsupported slackbuilds. ''' for sbo in slackbuilds: sources = SBoQueries(sbo).sources() if 'UNSUPPORTED' in sources: - raise SystemExit(f'Error: Package {sbo} ' - 'unsupported by arch.') + raise SystemExit(f'\nPackage {sbo} unsupported by arch.\n') def installed(self, slackbuilds): ''' Checking for installed packages. ''' @@ -41,7 +40,7 @@ class Check: for sbo in slackbuilds: if sbo + '-' in package and self.repo_tag in package: return - raise SystemExit('Error: Not found packages for remove.') + raise SystemExit('\nNot found packages for remove.\n') def database(self): ''' Checking for empty table '''