fix: Improve error handling for Claude Code CLI authentication check

Updated the error handling in the Claude Code CLI authentication check to log the specific error encountered. This enhancement provides better visibility into issues during the authentication process, ensuring users are informed of any problems that arise.
This commit is contained in:
Shirone
2026-01-25 19:53:19 +01:00
parent 014736bc1d
commit c9c406dd21

View File

@@ -139,8 +139,9 @@ const BOX_CONTENT_WIDTH = 67;
logger.info('✓ Claude Code CLI authentication detected');
return;
}
} catch {
} catch (error) {
// Ignore errors checking CLI auth - will fall through to warning
logger.warn('Error checking for Claude Code CLI authentication:', error);
}
// No authentication found - show warning