Loading buildstream/_frontend/app.py +14 −2 Original line number Diff line number Diff line Loading @@ -269,6 +269,9 @@ class App(): else: self._message(MessageType.FAIL, session_name, elapsed=elapsed) # Notify session failure self._notify("{} failed".format(session_name), "{}".format(e)) if self._started: self._print_summary() Loading @@ -286,6 +289,9 @@ class App(): if self._started: self._print_summary() # Notify session success self._notify("{} succeeded".format(session_name), "") # init_project() # # Initialize a new BuildStream project, either with the explicitly passed options, Loading Loading @@ -419,6 +425,12 @@ class App(): # Local Functions # ############################################################ # Local function for calling the notify() virtual method # def _notify(self, title, text): if self.interactive: self.notify(title, text) # Local message propagator # def _message(self, message_type, message, **kwargs): Loading Loading @@ -571,7 +583,7 @@ class App(): while choice not in ['continue', 'quit', 'terminate', 'retry']: click.echo(summary, err=True) self.notify("BuildStream failure", "{} on element {}" self._notify("BuildStream failure", "{} on element {}" .format(failure.action_name, element.name)) try: Loading Loading
buildstream/_frontend/app.py +14 −2 Original line number Diff line number Diff line Loading @@ -269,6 +269,9 @@ class App(): else: self._message(MessageType.FAIL, session_name, elapsed=elapsed) # Notify session failure self._notify("{} failed".format(session_name), "{}".format(e)) if self._started: self._print_summary() Loading @@ -286,6 +289,9 @@ class App(): if self._started: self._print_summary() # Notify session success self._notify("{} succeeded".format(session_name), "") # init_project() # # Initialize a new BuildStream project, either with the explicitly passed options, Loading Loading @@ -419,6 +425,12 @@ class App(): # Local Functions # ############################################################ # Local function for calling the notify() virtual method # def _notify(self, title, text): if self.interactive: self.notify(title, text) # Local message propagator # def _message(self, message_type, message, **kwargs): Loading Loading @@ -571,7 +583,7 @@ class App(): while choice not in ['continue', 'quit', 'terminate', 'retry']: click.echo(summary, err=True) self.notify("BuildStream failure", "{} on element {}" self._notify("BuildStream failure", "{} on element {}" .format(failure.action_name, element.name)) try: Loading