diff options
| author | Olcan <[email protected]> | 2025-04-25 12:38:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-25 12:38:38 -0700 |
| commit | 415ec91c6df723b72ff1ef648f176b8d5a5a2dbf (patch) | |
| tree | 5f297e438484e5cfa9e1a6f715da1dd103dee18e | |
| parent | 320f54e2057da5ae92ee47d9d53d1c77a4badc19 (diff) | |
detect missing sandbox image and provide useful error message (#174)
| -rwxr-xr-x | scripts/start_sandbox.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/start_sandbox.sh b/scripts/start_sandbox.sh index 1661fa14..18e81bde 100755 --- a/scripts/start_sandbox.sh +++ b/scripts/start_sandbox.sh @@ -24,6 +24,12 @@ CMD=$(scripts/sandbox_command.sh) IMAGE=gemini-code-sandbox DEBUG_PORT=9229 +# stop if image is missing +if ! $CMD images -q "$IMAGE" | grep -q .; then + echo "ERROR: $IMAGE is missing. Try \`npm run build\` with sandboxing enabled." + exit 1 +fi + PROJECT=$(basename "$PWD") WORKDIR=/sandbox/$PROJECT CLI_PATH=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli |
