Updated error messages

This commit is contained in:
Dimitris Zlatanidis 2023-03-07 21:46:56 +02:00
parent 87bd0b0ba8
commit c9865dc9af

View file

@ -152,7 +152,7 @@ class Slackbuilds(Configs):
slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
os.chmod(slackbuild, 0o775)
else:
print(f"{self.red}Error:{self.endc} package "
print(f"[{self.red}Error{self.endc}]: package "
f"'{self.cyan}{sbo}{self.endc}' not found in the repository.")
self.view_message.question()
self.install_order.remove(sbo)
@ -337,7 +337,7 @@ class Slackbuilds(Configs):
def print_error(self) -> None:
""" Stop the process and print the error message. """
if self.output != 0:
raise SystemExit(f"\n{self.red}FAILED {self.output}:{self.endc} {self.process_message}.\n")
raise SystemExit(f"\n[{self.red}FAILED{self.endc}]: {self.output}: {self.process_message}.\n")
def choose_dependencies(self, dependencies: list) -> list:
""" Choose packages for install. """