Skip to content

[rust-launcher] Fix duplicate error messages in LauncherError #2610

@barakeinav1

Description

@barakeinav1

Context

Follow-up from PR #2326 (port node launcher to Rust). Tracked in #2598.

Problem

In crates/tee-launcher/src/error.rs, DockerRunFailed (line 18) and DockerRunFailedExitStatus (line 24) have identical #[error()] messages:

#[error("docker run failed for validated hash")]
DockerRunFailed { ... },

#[error("docker run failed for validated hash")]
DockerRunFailedExitStatus { ... },

This makes it impossible to distinguish them in logs.

Action

Give DockerRunFailedExitStatus a distinct message, e.g.:

#[error("docker run exited with non-zero status for validated hash")]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions