Skip to content

fix(host): log SolarError fields, not the bare object#18

Merged
ClodoCapeo merged 1 commit into
mainfrom
conduit/solar-legible-error-log
Jun 11, 2026
Merged

fix(host): log SolarError fields, not the bare object#18
ClodoCapeo merged 1 commit into
mainfrom
conduit/solar-legible-error-log

Conversation

@ClodoCapeo

Copy link
Copy Markdown
Contributor

Why

During the M3 black-screen incident the antenna logs showed only [solar] [object Object] — zero diagnostic signal. Proven cause: SolarError is a plain { code, message, recoverable } object (not an Error subclass), and console.error("[solar]", err) in the Pulsar CEF log bridge string-coerces the second arg, so every error code collapses to [object Object]. The string carries no information about which code fired (INVALID_VALUE vs BUNDLE_FETCH_FAILED vs VERSION_GAP all look identical).

This is what led the prior diagnosis to guess whereEmptyN — the real code/message were never visible.

Fix

Log the fields explicitly in both the host and dev bootstraps:

[solar] BUNDLE_FETCH_FAILED: bundle fetch failed: 404 Not Found (recoverable)

No behaviour change beyond the log line; broadcast still surfaces no chrome.

🤖 Generated with Claude Code

`console.error("[solar]", err)` printed `[solar] [object Object]` in the
CEF console because SolarError is a plain `{ code, message, recoverable }`
object (not an Error) and the host's log bridge string-coerces the second
arg. That swallowed `code`/`message` and made the M3 black-screen
incident undiagnosable from the antenna logs.

Log the fields explicitly so the real cause always survives, in both the
host and dev bootstraps.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ClodoCapeo
ClodoCapeo merged commit 4acf9d3 into main Jun 11, 2026
5 checks passed
@ClodoCapeo
ClodoCapeo deleted the conduit/solar-legible-error-log branch June 11, 2026 22:37
@ClodoCapeo ClodoCapeo mentioned this pull request Jun 11, 2026
ClodoCapeo added a commit that referenced this pull request Jun 11, 2026
Legible host error logging (code: message) — Conduit #18.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant