mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-04 14:25:35 -04:00
Fail gracefully if a phys backend is not supplied
This commit is contained in:
parent
cce15445c9
commit
792e3a26f4
1 changed files with 5 additions and 0 deletions
|
|
@ -75,6 +75,11 @@ func (c *ServerCommand) Run(args []string) int {
|
|||
}
|
||||
}
|
||||
|
||||
if config.Backend == nil {
|
||||
c.Ui.Error("Error: A physical backend must be specified in the configuration")
|
||||
return 1
|
||||
}
|
||||
|
||||
// If mlock isn't supported, show a warning. We disable this in
|
||||
// dev because it is quite scary to see when first using Vault.
|
||||
if !dev && !mlock.Supported() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue