From c431ee4cb46c4647d58422e482dce2fa3ce566a6 Mon Sep 17 00:00:00 2001 From: Max Cai Date: Tue, 2 Apr 2024 11:10:22 -0400 Subject: [PATCH] Update internal/wrapper/checkargs.go Co-authored-by: Eric Norris <1906605+ericnorris@users.noreply.github.com> --- internal/wrapper/checkargs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/wrapper/checkargs.go b/internal/wrapper/checkargs.go index 98538e1..b615cc7 100644 --- a/internal/wrapper/checkargs.go +++ b/internal/wrapper/checkargs.go @@ -15,7 +15,7 @@ func checkStateCommand(args []string, version *semver.Version) error { STATE_COMMAND_VAR := "TF_DEMUX_ALLOW_STATE_COMMANDS" errorMsg := func(command string, suggestion string) error { - return fmt.Errorf("need to set %s=true for the '%s' command. Consider using Terraform configuration %s block instead", STATE_COMMAND_VAR, command, suggestion) + return fmt.Errorf("refusing to execute '%s' command - use a '%s' configuration block instead, or set %s=true.", command, suggestion, STATE_COMMAND_VAR) } if checkArgsExists(args, "import") >= 0 &&