Merge pull request #390 from KeyboardNerd/fernet
cmd: make pagination key error clearer
This commit is contained in:
commit
1119fdfea6
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user