From 2b4fa09269f5398d396fea59312efa214964be75 Mon Sep 17 00:00:00 2001 From: uturunku1 Date: Mon, 4 Mar 2024 08:41:02 -0800 Subject: [PATCH 1/2] update error message regarding a state version still being processed. Before the msg did not include the word state, so a customer, who had no resources in the workspace, misinterpret the msg and thought that it was saying that he had resources in the workspace and they were being processed --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 57fc5dccf..d096b80f4 100644 --- a/errors.go +++ b/errors.go @@ -66,7 +66,7 @@ var ( // to determine if it is safe to delete. "conflict" followed by newline is used to // preserve go-tfe version compatibility with the error constructed at runtime before it was // defined here. - ErrWorkspaceStillProcessing = errors.New("conflict\nworkspace is still being processed to discover resources") + ErrWorkspaceStillProcessing = errors.New("conflict\nLatest workspace state is being processed to discover resources, please try again later") // ErrWorkspaceNotSafeToDelete is returned when a workspace has processed state and // is determined to still have resources present. "conflict" followed by newline is used to From 464fb4e39a7a21909b8ae48c35d69e318d60ea45 Mon Sep 17 00:00:00 2001 From: uturunku1 Date: Fri, 8 Mar 2024 13:37:40 -0800 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a53a3aad6..4a2eb5e1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Unreleased +## Bug fixes +* Change the error message for `ErrWorkspaceStillProcessing` to be the same error message returned by the API by @uturunku1 [#864](https://github.com/hashicorp/go-tfe/pull/864) + # v1.47.0 ## Enhancements