Skip to content

Error is too vague when rustc is missing #1267

@glandium

Description

@glandium

When rustc is not found, this is the error that is printed:

[ERROR] Error while executing llvm tools: No such file or directory (os error 2)

That comes from

let output = Command::new(rustc).arg("--print").arg("sysroot").output()?;
that fails with an std::io::Error that doesn't contain information about what specifically failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions