Skip to content

Replace panic with error return#145

Merged
yeqown merged 1 commit into
yeqown:mainfrom
redawl:main
Mar 10, 2026
Merged

Replace panic with error return#145
yeqown merged 1 commit into
yeqown:mainfrom
redawl:main

Conversation

@redawl
Copy link
Copy Markdown
Contributor

@redawl redawl commented Mar 10, 2026

Replace panic with an error return.

When running as part of a long running server, panic is problematic, as it causes the server to crash if there is no recover in place. Returning an error allows the caller to decide how to handle this fatal error.

This has also been tested thoroughly in a private repo.

@yeqown yeqown merged commit 481aa2a into yeqown:main Mar 10, 2026
2 checks passed
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