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

Avoid double reporting of server error #144

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

Liozou
Copy link
Member

@Liozou Liozou commented Oct 20, 2023

Seems like I was over-eager on my previous PR #142: I tried launching julia --bug-report=rr -e "" while having the network connection off to test a failure case, but then I got the error message twice. That's a bit too much... So, I propose only using errormonitor if the reported error is not already a TaskFailedException (which should already report the proper error then).

Sorry for the hiccup.

@simeonschaub
Copy link
Member

Any way we could add a test for this?

@Liozou
Copy link
Member Author

Liozou commented Oct 20, 2023

I was thinking about that too, but I don't really know how. This PR and the previous one do not actually change any value, the errormonitor only prints the stacktrace of the task error on stderr.
I guess what could be doable is to have the server somehow send an invalid response (binary, unparseable JSON or invalid JSON) and check that the corresponding error message appears somewhere in stderr... But I don't know how to trick the server into doing that.

@maleadt maleadt merged commit 4235da1 into JuliaLang:master Oct 23, 2023
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.

3 participants