Skip to content

Conversation

@lengmodkx
Copy link
Contributor

Fix multiple locations where objects were being directly passed to
console.error/console.log, which causes [object Object] to be displayed
instead of meaningful error messages.

Changes:

  • packages/opencode/src/index.ts: Properly convert error to string
  • packages/opencode/src/cli/cmd/github.ts: Convert error objects to strings
  • packages/opencode/src/cli/cmd/debug/file.ts: Use JSON.stringify for objects

lengmodkx and others added 2 commits January 13, 2026 10:13
Fix multiple locations where objects were being directly passed to
console.error/console.log, which causes [object Object] to be displayed
instead of meaningful error messages.

Changes:
- packages/opencode/src/index.ts: Properly convert error to string
- packages/opencode/src/cli/cmd/github.ts: Convert error objects to strings
- packages/opencode/src/cli/cmd/debug/file.ts: Use JSON.stringify for objects

Co-Authored-By: Claude <[email protected]>
fix: prevent [object Object] error display in console output
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node merged commit efaa916 into anomalyco:dev Jan 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants