Skip to content

armgit / E2B

Public Imported from GitHub
0

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

fix(cli): log update check errors in debug mode (#1212)

Mish Ushakovdb000a20e8c3
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts
index fe2bde850..00ada9cc3 100644
--- a/packages/cli/src/index.ts
+++ b/packages/cli/src/index.ts
@@ -11,8 +11,10 @@ export const pkg = packageJSON
const updateCheck = simpleUpdateNotifier({
pkg,
updateCheckInterval: 1000 * 60 * 60 * 8, // 8 hours
-}).catch(() => {
- // Silently ignore update check failures to avoid unhandled rejections
+}).catch((e) => {
+ if (process.env.DEBUG) {
+ console.error('Update check failed:', e)
+ }
})
const prog = program.version(