encrypt: fix check for missing config

Change-Id: I4433c36bc55a475cfa59953594f3a554c2d6ec2e
This commit is contained in:
Brad Fitzpatrick 2013-07-09 07:24:14 +10:00
parent 574b5feb96
commit 2c4d272ef9
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ func newFromConfig(ld blobserver.Loader, config jsonconfig.Obj) (bs blobserver.S
return
}
if sto.key == nil {
if keyb == nil {
// TODO: add a way to prompt from stdin on start? or keychain support?
return nil, errors.New("no encryption key set with 'key' or 'keyFile'")
}