diff options
Diffstat (limited to 'src/buildstream/_frontend/app.py')
-rw-r--r-- | src/buildstream/_frontend/app.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buildstream/_frontend/app.py b/src/buildstream/_frontend/app.py index e146de9e5..d8ec3e739 100644 --- a/src/buildstream/_frontend/app.py +++ b/src/buildstream/_frontend/app.py @@ -518,14 +518,16 @@ class App(): try: choice = click.prompt("Choice:", - value_proc=_prefix_choice_value_proc(['continue', 'quit', 'terminate']), + value_proc=_prefix_choice_value_proc(['continue', 'quit', 'terminate', 'e']), default='continue', err=True) except click.Abort: # Ensure a newline after automatically printed '^C' click.echo("", err=True) choice = 'terminate' - - if choice == 'terminate': + if choice == 'e': + from traceback import print_stack + print_stack(file=sys.stderr) + elif choice == 'terminate': click.echo("\nTerminating all jobs at user request\n", err=True) self.stream.terminate() else: |