Skip to content

Commit

Permalink
backport of commit 657ee31
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp authored May 31, 2023
1 parent 7a0755b commit 2777f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/consul/path_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (b *backend) pathConfigAccessWrite(ctx context.Context, req *logical.Reques
}
token, _, err := client.ACL().Bootstrap()
if err != nil {
return logical.ErrorResponse("Token not provided and failed to bootstrap ACLs"), err
return logical.ErrorResponse("Token not provided and failed to bootstrap ACLs: %s", err), nil
}
config.Token = token.SecretID
}
Expand Down
4 changes: 4 additions & 0 deletions changelog/20891.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:improvement
secrets/consul: Improve error message when ACL bootstrapping fails.
```

0 comments on commit 2777f66

Please sign in to comment.