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

Better libuv error message for ENOENT ~ #22647

Merged
merged 6 commits into from
Feb 1, 2024

Conversation

TotalVerb
Copy link
Contributor

This came up a few times, so I thought it'd be nice to provide a helpful error message here.

I'd like to add some tests for this, but @test_throws can't seem to test the error message. Should I use try/catch and manually test the sprint(showerror, e), or is there a better way of doing so?

@ararslan
Copy link
Member

ararslan commented Jul 1, 2017

I think catch with sprint is the usual way to test things like this

@ararslan ararslan added domain:error handling Handling of exceptions by Julia or the user domain:filesystem Underlying file system and functions that use it needs tests Unit tests are required for this change labels Jul 1, 2017
base/libuv.jl Outdated Show resolved Hide resolved
@vtjnash vtjnash added status:merge me PR is reviewed. Merge when all tests are passing and removed needs tests Unit tests are required for this change labels Jan 31, 2024
base/libuv.jl Outdated Show resolved Hide resolved
@IanButterworth IanButterworth merged commit 6db867b into JuliaLang:master Feb 1, 2024
7 checks passed
@inkydragon inkydragon removed the status:merge me PR is reviewed. Merge when all tests are passing label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:error handling Handling of exceptions by Julia or the user domain:filesystem Underlying file system and functions that use it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants