From 8be8caaee6cc006df9846a109ebb154799abe5aa Mon Sep 17 00:00:00 2001 From: AleksandrMatsko Date: Tue, 15 Oct 2024 16:48:01 +0700 Subject: [PATCH] refactor: error initialization --- metric_source/remote/request.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metric_source/remote/request.go b/metric_source/remote/request.go index 54696f7da..6a8dba1ac 100644 --- a/metric_source/remote/request.go +++ b/metric_source/remote/request.go @@ -133,7 +133,9 @@ func internalErrToPublicErr(err error, target string) error { } } - return ErrRemoteTriggerResponse{} + return ErrRemoteTriggerResponse{ + InternalError: err, + Target: target} } var remoteUnavailableStatusCodes = map[int]struct{}{