mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Updated error messages
This commit is contained in:
parent
87bd0b0ba8
commit
c9865dc9af
1 changed files with 2 additions and 2 deletions
|
@ -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. """
|
||||
|
|
Loading…
Reference in a new issue