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

fix: fix redundant path in error message #363

Closed
wants to merge 1 commit into from

Conversation

famouswizard
Copy link

Is this resolving a feature or a bug?

This is neither a feature nor a bug fix, but a small improvement to the clarity and simplicity of an error message.

Are there existing issue(s) that this PR would close?

No, this is not tied to any existing issues.

If this PR is not minimal (it could be split into multiple PRs), please explain why the issues are best resolved together.

This PR is minimal and focuses solely on improving the error message.

Describe your changes.

In the error message for file path not found, the path "target/riscv32i-unknown-none-elf/release/" was being duplicated unnecessarily since it’s already included in TARGET_PATH. I updated the panic! statement to use path.display(), which directly provides the full path in the error message, making it more concise and informative. This eliminates redundancy and improves readability.

@sjudson
Copy link
Contributor

sjudson commented Feb 24, 2025

Closing per policy to not accept minor cosmetic fixes.

@sjudson sjudson closed this Feb 24, 2025
@famouswizard famouswizard deleted the patch-2 branch February 24, 2025 19:21
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

Successfully merging this pull request may close these issues.

2 participants