summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_frontend/cli.py')
-rw-r--r--src/buildstream/_frontend/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index 5e42bda68..ab06e8a8a 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -640,7 +640,7 @@ def shell(app, element, mount, isolate, build_, cli_buildtree, pull_, command):
pull_=pull_,
)
except BstError as e:
- raise AppError("Error launching shell: {}".format(e), detail=e.detail) from e
+ raise AppError("Error launching shell: {}".format(e), detail=e.detail, reason=e.reason) from e
# If there were no errors, we return the shell's exit code here.
sys.exit(exitcode)