mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
fix(dify_cli): solve the permission error on e2b
This commit is contained in:
@ -89,3 +89,12 @@ class CommandResult(BaseModel):
|
||||
@property
|
||||
def info_message(self) -> str:
|
||||
return self.stdout.decode("utf-8", errors="replace") if self.stdout else ""
|
||||
|
||||
@property
|
||||
def debug_message(self) -> str:
|
||||
return (
|
||||
f"stdout: {self.stdout.decode('utf-8', errors='replace')}\n"
|
||||
f"stderr: {self.stderr.decode('utf-8', errors='replace')}\n"
|
||||
f"exit_code: {self.exit_code}\n"
|
||||
f"pid: {self.pid}"
|
||||
)
|
||||
|
||||
@ -30,7 +30,7 @@ class SandboxConfigValidationError(ValueError):
|
||||
pass
|
||||
|
||||
|
||||
class CommandExecutionError(Exception):
|
||||
class CommandExecutionError(ValueError):
|
||||
"""Raised when a command execution fails."""
|
||||
|
||||
result: CommandResult
|
||||
|
||||
Reference in New Issue
Block a user