Fail gracefully if a phys backend is not supplied

This commit is contained in:
David Wittman
2015-05-18 22:47:57 -05:00
parent cce15445c9
commit 792e3a26f4

View File

@@ -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() {