Proposed Changes

Replaced two panics in pkg/catalog/loader/loader.go with graceful error handling:

  1. GetDialersWithId() returning nil now logs an error and returns nil instead of panicking
  2. syncutil.New() failure now logs an error and returns nil instead of panicking

Before

if dialers == nil {
panic("dialers with executionId " + typesOpts.ExecutionId + " not found")
}

After

if dialers == nil {
store.logger.Error().Msgf("dialers with executionId %s not found", typesOpts.ExecutionId)
return nil
}

Proof

  • go build ./pkg/catalog/loader/... passes with no errors

/claim #5838

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Enhanced error handling to gracefully log and recover from initialization errors instead of crashing the application.

Claim

Total prize pool $200
Total paid $0
Status Pending
Submitted March 03, 2026
Last updated March 03, 2026

Contributors

HE

hetbhatt2807

@hetbhatt2807

100%

Sponsors

PR

ProjectDiscovery

@projectdiscovery

$200