Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lantern 624 error handling populatedb #380

Merged
merged 7 commits into from
Aug 8, 2024
5 changes: 4 additions & 1 deletion endpointmanager/cmd/endpointpopulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/streadway/amqp"

"github.com/onc-healthit/lantern-back-end/endpointmanager/pkg/endpointmanager/postgresql"
"strings"
)

func main() {
Expand Down Expand Up @@ -74,7 +75,9 @@ func main() {
}

listOfEndpoints, err := fetcher.GetEndpointsFromFilepath(endpointsFile, format, source, listURL)
helpers.FailOnError("Endpoint List Parsing Error: ", err)
if err != nil && strings.Contains(err.Error(), "incorrect reference value") {
log.Error("Endpoint List Parsing Error: ", err)
}

err = config.SetupConfig()
helpers.FailOnError("", err)
Expand Down
Loading