Skip to content

Commit

Permalink
Merge pull request #25 from michaelcoll/fix/error-handling
Browse files Browse the repository at this point in the history
fix(caller): handling of marshaling error
  • Loading branch information
michaelcoll committed Jan 11, 2024
2 parents 16c991a + 7a59fc2 commit a52aaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/back/infrastructure/actuatorCallerImpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (c *ActuatorInfoCaller) getInfo(ctx context.Context, url string, duration t
jsonErr := json.Unmarshal(body, &actuatorInfo)
if jsonErr != nil {
fmt.Printf("%s Can't unmarshal response from %s\n", color.HiYellowString("i"), url)
return nil, err
return nil, jsonErr
}

c.c.Set(url, &actuatorInfo, duration)
Expand Down

0 comments on commit a52aaa7

Please sign in to comment.