Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change exception descriptions; Add TODO comment

Tomas Valentaaa302edc96d6
diff --git a/packages/js-sdk/src/sandbox/commands/commandHandle.ts b/packages/js-sdk/src/sandbox/commands/commandHandle.ts
index 42d4b3313..93eb957d8 100644
--- a/packages/js-sdk/src/sandbox/commands/commandHandle.ts
+++ b/packages/js-sdk/src/sandbox/commands/commandHandle.ts
@@ -218,6 +218,7 @@ export class CommandHandle
}
break
}
+ // TODO: Handle empty events like in python SDK
}
}
diff --git a/packages/python-sdk/e2b/sandbox_async/commands/command_handle.py b/packages/python-sdk/e2b/sandbox_async/commands/command_handle.py
index 0523432bc..0b9d2349d 100644
--- a/packages/python-sdk/e2b/sandbox_async/commands/command_handle.py
+++ b/packages/python-sdk/e2b/sandbox_async/commands/command_handle.py
@@ -172,7 +172,7 @@ class AsyncCommandHandle:
raise self._iteration_exception
if self._result is None:
- raise Exception("Process ended without an end event")
+ raise Exception("Command ended without an end event")
if self._result.exit_code != 0:
raise CommandExitException(
diff --git a/packages/python-sdk/e2b/sandbox_sync/commands/command_handle.py b/packages/python-sdk/e2b/sandbox_sync/commands/command_handle.py
index 5dbf6e0d4..edb18d11d 100644
--- a/packages/python-sdk/e2b/sandbox_sync/commands/command_handle.py
+++ b/packages/python-sdk/e2b/sandbox_sync/commands/command_handle.py
@@ -124,7 +124,7 @@ class CommandHandle:
raise self._iteration_exception
if self._result is None:
- raise Exception("Process ended without an end event")
+ raise Exception("Command ended without an end event")
if self._result.exit_code != 0:
raise CommandExitException(