Replaced two panics in pkg/catalog/loader/loader.go with graceful error handling:
GetDialersWithId() returning nil now logs an error and returns nil instead of panickingsyncutil.New() failure now logs an error and returns nil instead of panickingif dialers == nil {
panic("dialers with executionId " + typesOpts.ExecutionId + " not found")
}
if dialers == nil {
store.logger.Error().Msgf("dialers with executionId %s not found", typesOpts.ExecutionId)
return nil
}
go build ./pkg/catalog/loader/... passes with no errors/claim #5838
hetbhatt2807
@hetbhatt2807
ProjectDiscovery
@projectdiscovery