Skip to content

Commit

Permalink
refactor: error initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMatsko committed Oct 15, 2024
1 parent 139d701 commit 8be8caa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metric_source/remote/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ func internalErrToPublicErr(err error, target string) error {
}
}

return ErrRemoteTriggerResponse{}
return ErrRemoteTriggerResponse{
InternalError: err,
Target: target}
}

var remoteUnavailableStatusCodes = map[int]struct{}{
Expand Down

0 comments on commit 8be8caa

Please sign in to comment.