Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a83657

Browse files
authored
Print LocalStackExitErrors in the new runtime (#11066)
1 parent 946b273 commit 1a83657

File tree

1 file changed

+1
-0
lines changed
  • localstack-core/localstack/runtime

1 file changed

+1
-0
lines changed

‎localstack-core/localstack/runtime/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def _terminate_localstack(sig: int, frame):
9696
try:
9797
runtime.run()
9898
except LocalstackExit as e:
99+
sys.stdout.write(f"Localstack returning with exit code {e.code}. Reason: {e}")
99100
sys.exit(e.code)
100101
except Exception as e:
101102
sys.stdout.write(f"ERROR: the LocalStack runtime exited unexpectedly: {e}\n")

0 commit comments

Comments
 (0)