From 792e3a26f485d03376be23f8d3295304b4c92dd2 Mon Sep 17 00:00:00 2001 From: David Wittman Date: Mon, 18 May 2015 22:47:57 -0500 Subject: [PATCH] Fail gracefully if a phys backend is not supplied --- command/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command/server.go b/command/server.go index 74017fd716..e6dd679752 100644 --- a/command/server.go +++ b/command/server.go @@ -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() {