Exit with an error message if parsing settings.json fails. (#747)

This commit is contained in:
Jacob Richman
2025-06-06 09:56:45 -07:00
committed by GitHub
parent b4a6b16227
commit 89aca349cf
6 changed files with 246 additions and 32 deletions

View File

@@ -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);
});