Skip to content

fix: log error in isCliEntrypoint empty catch block - #22

Merged
dapi merged 1 commit into
mainfrom
feature/issue-20-fix-log-error-in-resolveentrypointpath-e
Mar 13, 2026
Merged

fix: log error in isCliEntrypoint empty catch block#22
dapi merged 1 commit into
mainfrom
feature/issue-20-fix-log-error-in-resolveentrypointpath-e

Conversation

@dapi

@dapi dapi commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace silent catch {} with catch (error) + process.stderr.write() in isCliEntrypoint() to log realpathSync failures before falling back to path.resolve()
  • Prevents silent swallowing of startup errors that made debugging difficult

Closes #20

Test plan

  • Run node cli.js normally — no stderr output expected
  • Run via symlink — verify fallback works and error is logged to stderr

🤖 Generated with Claude Code

Replace silent catch {} with error logging to stderr before falling
back to path.resolve(), preventing realpathSync failures from being
silently swallowed during startup.

Closes #20

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dapi
dapi merged commit e70080d into main Mar 13, 2026
1 check passed
@dapi
dapi deleted the feature/issue-20-fix-log-error-in-resolveentrypointpath-e branch March 13, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: log error in resolveEntrypointPath empty catch block

1 participant