Skip to content

fix(srcinfo): avoid panic on srcinfo failed parse - #2645

Merged
Jguer merged 1 commit into
nextfrom
jguer/no-panic-fail-parse
Jul 19, 2025
Merged

fix(srcinfo): avoid panic on srcinfo failed parse #2645
Jguer merged 1 commit into
nextfrom
jguer/no-panic-fail-parse

Conversation

@Jguer

@Jguer Jguer commented Jul 19, 2025

Copy link
Copy Markdown
Owner

fixes #2640

@Jguer
Jguer requested a review from Copilot July 19, 2025 08:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a panic issue in the srcinfo service by replacing a panic(err) call with proper error handling that returns the error to the caller. This change prevents the application from crashing when srcinfo parsing fails and allows for graceful error handling.

  • Replaces panic with proper error return in NewService function
  • Maintains existing error propagation pattern for better stability

@Jguer
Jguer merged commit ea3fceb into next Jul 19, 2025
2 checks passed
@Jguer
Jguer deleted the jguer/no-panic-fail-parse branch July 19, 2025 08:46
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.

mbm-gpsd-pl4nkton-git causes panic

2 participants