include docker error reason in sandbox start failure response

This commit is contained in:
Азамат Нураев 2026-05-05 10:04:58 +03:00
parent d4434a0afe
commit 32793de992
3 changed files with 6 additions and 4 deletions

View file

@ -94,11 +94,11 @@ class DockerSandboxRuntime(SandboxRuntime):
endpoint = self._endpoint_from_container(container)
except (DockerException, OSError, ValueError) as exc:
self._remove_created_container(container, str(chat_id), exc)
raise SandboxStartError(str(chat_id)) from exc
raise SandboxStartError(str(chat_id), str(exc)) from exc
except SandboxStartError:
raise
except (DockerException, OSError, ValueError) as exc:
raise SandboxStartError(str(chat_id)) from exc
raise SandboxStartError(str(chat_id), str(exc)) from exc
result = 'created'
span.set_attribute('container.id', container_id)