Merge pull request #390 from KeyboardNerd/fernet

cmd: make pagination key error clearer
This commit is contained in:
Jimmy Zelinskie 2017-05-09 18:59:10 -04:00 committed by GitHub
commit 1119fdfea6

View File

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