Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message if package file is not found #2

Open
bringert opened this issue Oct 28, 2024 · 0 comments
Open

Improve error message if package file is not found #2

bringert opened this issue Oct 28, 2024 · 0 comments

Comments

@bringert
Copy link

In 0.3.0, if you give a non-existing file path to buildfs run, the error message doesn't explain what file isn't found. In this example thebuild_script_x.toml file doesn't exist.

$ buildfs run -o debian.ext4 build_script_x.toml
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/buildfs-0.3.0/src/package.rs:14:14:
Could not inspect file/directory metadata: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It would have been nicer if the error message included the name of the file that wasn't found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant