Skip to content

Conversation

@mostlygeek
Copy link
Contributor

Remove os.Exit() and panic() calls that could cause tsidp to exit unexpectedly during an HTTP request. After this change tsidp will return a 500 internal server error to clients and log errors to stdout.

Fixes #71

Remove os.Exit() and panic() calls that could cause tsidp to exit
unexpectedly during an HTTP request. After this change tsidp will return
a 500 internal server error to clients and log errors to stdout.

Fixes #71

Signed-off-by: Benson Wong <benson@tailscale.com>
@mostlygeek mostlygeek self-assigned this Oct 1, 2025
@mostlygeek mostlygeek requested a review from mikeodr October 1, 2025 02:44
Signed-off-by: Benson Wong <benson@tailscale.com>
@mostlygeek
Copy link
Contributor Author

@mikeodr I renamed the function as it no longer panics.

Copy link
Collaborator

@mikeodr mikeodr left a comment

Choose a reason for hiding this comment

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

Should squash to 1 commit but LGTM!

@mostlygeek mostlygeek merged commit d89f3c8 into main Oct 1, 2025
2 checks passed
@mostlygeek mostlygeek deleted the mostlygeek/cleanup-exit-71 branch October 1, 2025 17:22
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.

Move all os.Exit(1) and panic to application startup

2 participants