diff options
| author | Jacob Richman <[email protected]> | 2025-06-06 09:56:45 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-06 09:56:45 -0700 |
| commit | 89aca349cfd46cb242ba32533aee9bc49db89d94 (patch) | |
| tree | ecf14ec14357b3d6d19ef3b6089ea0180714e8de /packages/cli/index.ts | |
| parent | b4a6b16227bd94bae99401b2effac8a24c3f92ff (diff) | |
Exit with an error message if parsing settings.json fails. (#747)
Diffstat (limited to 'packages/cli/index.ts')
| -rw-r--r-- | packages/cli/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 7df29cd0..5478f034 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -7,3 +7,15 @@ */ import './src/gemini.js'; +import { main } from './src/gemini.js'; + +// --- Global Entry Point --- +main().catch((error) => { + console.error('An unexpected critical error occurred:'); + if (error instanceof Error) { + console.error(error.message); + } else { + console.error(String(error)); + } + process.exit(1); +}); |
