Skip to content

Commit

Permalink
Update internal/wrapper/checkargs.go
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Norris <[email protected]>
  • Loading branch information
c4po and ericnorris authored Apr 2, 2024
1 parent 932768b commit c431ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wrapper/checkargs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit c431ee4

Please sign in to comment.