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
|
|
@ -23,9 +23,10 @@ class SandboxError(DomainError):
|
|||
|
||||
|
||||
class SandboxStartError(SandboxError):
|
||||
def __init__(self, chat_id: str) -> None:
|
||||
def __init__(self, chat_id: str, reason: str = '') -> None:
|
||||
super().__init__('sandbox_start_failed')
|
||||
self.chat_id = chat_id
|
||||
self.reason = reason
|
||||
|
||||
|
||||
class SandboxAlreadyRunningError(SandboxError):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue