Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Panic in "If it does actually panic, then ping the authors of LiteBox" #650

Open
Labels
priority-lowLow priority "nice to have"
@Shnatsel

Description

Trying to run litebox_runner_linux_userland echo yay on a stock desktop Ubuntu installation causes the following panic:

thread 'main' (41447) panicked at litebox_runner_linux_userland/src/lib.rs:118:48:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

Referring to this line:

let metadata = path.metadata().unwrap();

The function it's contained in has this comment:

/// Can panic if any particulars of the environment are not set up as expected. Ideally, would not
/// panic. If it does actually panic, then ping the authors of LiteBox, and likely a better error
/// message could be thrown instead.

I could not find any documentation on the expected environment setup, so adding that and/or a better error message would be very welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-lowLow priority "nice to have"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /