command/audit: improve audit enable type missing error message (#16409)
* command/audit: improve audit enable type missing error message * changelog
This commit is contained in:
parent
c0b0c4fde7
commit
d25a3526af
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:improvement
|
||||||
|
command/audit: Improve missing type error message
|
||||||
|
```
|
|
@ -110,7 +110,7 @@ func (c *AuditEnableCommand) Run(args []string) int {
|
||||||
|
|
||||||
args = f.Args()
|
args = f.Args()
|
||||||
if len(args) < 1 {
|
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
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ func TestAuditEnableCommand_Run(t *testing.T) {
|
||||||
{
|
{
|
||||||
"empty",
|
"empty",
|
||||||
nil,
|
nil,
|
||||||
"Missing TYPE!",
|
"Error enabling audit device: audit type missing. Valid types include 'file', 'socket' and 'syslog'.",
|
||||||
1,
|
1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue