Skip to content

Commit

Permalink
500 error if error is not null VEGA-2203 #minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Iqpal Mannan committed Dec 15, 2023
1 parent e6f31f3 commit 4eb8ce1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lambda/get/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ func (l *Lambda) HandleEvent(ctx context.Context, event events.APIGatewayProxyRe
return shared.ProblemNotFoundRequest.Respond()
}

if err != nil {
l.logger.Print(err)
return shared.ProblemInternalServerError.Respond()
}

body, err := json.Marshal(lpa)

if err != nil {
Expand Down

0 comments on commit 4eb8ce1

Please sign in to comment.