include docker error reason in sandbox start failure response
This commit is contained in:
parent
d4434a0afe
commit
32793de992
3 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue