Fixed stderr error output

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-05-11 10:27:16 +03:00
parent b6ffa5dde4
commit 6803c5aeb1

View file

@ -689,7 +689,7 @@ class ArgParse(BlackList):
break
if tag and tag not in colors:
print(f"\nslpkg: Error: Available colors {colors}\n")
raise SystemExit()
raise SystemExit(1)
if (len(self.args) == 3 and self.args[0] in options and
self.args[1] in self.meta.repositories and tag in colors):
PkgDesc(self.args[2], self.args[1], tag).view()