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

explain cryptic unix socket listener error related to process kill #4534

Merged

Conversation

ForestJohnson
Copy link
Contributor

previous PR: #4533

here is a simple demo of the error being caught and the error message being displayed: https://go.dev/play/p/ehz0pTPjMwZ

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this is quite a bit more intense than what I had in mind. The information in this error is worded more like a documentation page. Instead, the error should be short and concise, like "always exit Caddy gracefully," or "this can happen if Caddy is forcefully killed." And we can just use fmt.Errorf with %w to modify the error message.

@ForestJohnson ForestJohnson requested a review from mholt January 19, 2022 17:14
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thank you!

@mholt mholt merged commit b3f7ce3 into caddyserver:master Jan 19, 2022
@francislavoie francislavoie added this to the v2.5.0 milestone Jan 19, 2022
@francislavoie francislavoie added the documentation 📚 Improvements or additions to documentation label Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📚 Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants