Skip to content

executables' error messages include Rust debug output #22

Closed
@davepacheco

Description

@davepacheco

If you give oxide_controller a bogus config file path, you get a message that includes Rust debug output:

$ ./target/debug/oxide_controller foo
./target/debug/oxide_controller: read "foo": Os { code: 2, kind: NotFound, message: "No such file or directory" }

If you're not a Rust programmer, it's not obvious what this means (and even if you are, the Rust-specific context is more distracting than helpful). It used to look like this:

$ ./target/debug/oxide_controller foo
./target/debug/oxide_controller: read "foo": No such file or directory (os error 2)

which is intended to look like other standard tools. Take GNU grep:

$ grep foo asdf
grep: asdf: No such file or directory

This appears to have been a side effect (that I think was unintended) of 1758338 / #16. I'm going to fix this in #19, as I think it'll be easier to make the tests work if I fix this.

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