Skip to content

Commit

Permalink
command/audit: improve audit enable type missing error message (#16409)
Browse files Browse the repository at this point in the history
* command/audit: improve audit enable type missing error message

* changelog
  • Loading branch information
jasonodonnell committed Jul 21, 2022
1 parent 7e0d618 commit 522f14a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog/16409.txt
@@ -0,0 +1,3 @@
```release-note:improvement
command/audit: Improve missing type error message
```
2 changes: 1 addition & 1 deletion command/audit_enable.go
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
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

0 comments on commit 522f14a

Please sign in to comment.