cmd: make pagination key error clearer
This commit is contained in:
parent
d07183ee74
commit
0342a2a3e5
@ -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