Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command/audit: improve audit enable type missing error message #16409

Merged
merged 2 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/16409.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
command/audit: Improve missing type error message
```
2 changes: 1 addition & 1 deletion command/audit_enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *AuditEnableCommand) Run(args []string) int {

args = f.Args()
if len(args) < 1 {
c.UI.Error("Missing TYPE!")
c.UI.Error("Error enabling audit device: audit type missing. Valid types include 'file', 'socket' and 'syslog'.")
return 1
}

Expand Down
2 changes: 1 addition & 1 deletion command/audit_enable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestAuditEnableCommand_Run(t *testing.T) {
{
"empty",
nil,
"Missing TYPE!",
"Error enabling audit device: audit type missing. Valid types include 'file', 'socket' and 'syslog'.",
1,
},
{
Expand Down