fix: cli info handles not found without showing error message#1247
fix: cli info handles not found without showing error message#1247matthewlouisbrockman wants to merge 2 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: d86ffbd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR SummaryLow Risk Overview Adds a changeset to publish a Written by Cursor Bugbot for commit d86ffbd. This will update automatically on new commits. Configure here. |
Package ArtifactsBuilt from bc7c6e3. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.18.1-cleaner-cli-sandbox-info-not-found.0.tgzCLI ( npm install ./e2b-cli-2.9.1-cleaner-cli-sandbox-info-not-found.0.tgzPython SDK ( pip install ./e2b-2.19.0+cleaner.cli.sandbox.info.not.found-py3-none-any.whl |
Handles sandbox not found on cli info
Prior Behavior:
(searching for nonexistant iqe4cs0bcml3lf3hp5e3eef)
$ e2b sandbox info iqe4cs0bcml3lf3hp5e3eef
qr [SandboxNotFoundError]: Sandbox iqe4cs0bcml3lf3hp5e3eef not found
at Function.getFullInfo (/.../v20.20.0/lib/node_modules/@e2b/js-sdk/src/sandbox/sandboxApi.ts:565:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async t. (/.../node/v20.20.0/lib/node_modules/@e2b/cli/src/commands/sandbox/info.ts:53:20)
at async t.parseAsync (/.../node/v20.20.0/lib/node_modules/node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/command.js:936:5)
at async EIe (/.../versions/node/v20.20.0/lib/node_modules/@e2b/cli/src/index.ts:36:3
Fixed:
$ e2b sandbox info iqe4cs0bcml3lf3hp5e3eef
Sandbox iqe4cs0bcml3lf3hp5e3eef wasn't found