From 0fab988ab4245da32f888a15b79aaf8308c64636 Mon Sep 17 00:00:00 2001 From: srinandan Date: Thu, 12 Sep 2024 21:55:55 +0000 Subject: [PATCH] fix: adds ts name to the error #535 --- internal/client/targetservers/targetservers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/targetservers/targetservers.go b/internal/client/targetservers/targetservers.go index 907446da9..3604c3b94 100644 --- a/internal/client/targetservers/targetservers.go +++ b/internal/client/targetservers/targetservers.go @@ -388,7 +388,7 @@ func importServers(knownServers map[string]bool, wg *sync.WaitGroup, jobs <-chan errs <- err continue } else if resp.StatusCode/100 != 2 && resp.StatusCode != http.StatusConflict { - errs <- fmt.Errorf("could not import targetserver, apigee responded with HTTP %d: %s", resp.StatusCode, resp.Status) + errs <- fmt.Errorf("could not import targetserver %s, apigee responded with HTTP %d: %s", job.Name, resp.StatusCode, resp.Status) } b, err = io.ReadAll(resp.Body)