cmd: make pagination key error clearer

This commit is contained in:
Sida Chen 2017-05-09 15:13:42 -04:00
parent d07183ee74
commit 0342a2a3e5

View File

@ -105,6 +105,7 @@ func LoadConfig(path string) (config *Config, err error) {
} else { } else {
_, err = fernet.DecodeKey(config.API.PaginationKey) _, err = fernet.DecodeKey(config.API.PaginationKey)
if err != nil { if err != nil {
err = errors.New("Invalid Pagination key; must be 32-bit URL-safe base64")
return return
} }
} }