Skip to content

Ensure MXC never exits non-zero without first printing an error message #564

Closed

Description

@RamonArjona4

Description of the task

Reviewer feedback on PR #493 (thread) noted (explicitly "not for this PR"): MXC should never exit with a non-zero error code without first printing an error message. Solidifying this makes our error handling — and the telemetry derived from it — unambiguous, since MXC.Error on the completion path keys off a non-empty error_message.

Audit the exit / process::exit paths in src/core/wxc/src/main.rs and src/core/lxc/src/main.rs and ensure each non-zero exit emits a diagnostic first. Panics are the known exception (they cannot reliably print before aborting) and are covered by the separate crash-telemetry work.

Additional context

Activity

  1. self-assigned this
    on Jun 24, 2026
  2. added
    Needs-Triage
    Issue-Task
    on Jun 24, 2026
  3. added
    Needs-Triage
    and removed
    Needs-Triage
    on Jun 24, 2026
  4. removed
    Needs-Triage
    on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Issue-Task

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions