Merge pull request #5814 from vasco-santos/chore/add-available-options-for-perm-on-error

chore: add available options for perm on error
This commit is contained in:
Łukasz Magiera 2021-03-25 13:56:17 +01:00 committed by GitHub
commit 312c69f1da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ var AuthApiInfoToken = &cli.Command{
ctx := ReqContext(cctx) ctx := ReqContext(cctx)
if !cctx.IsSet("perm") { if !cctx.IsSet("perm") {
return xerrors.New("--perm flag not set") return xerrors.New("--perm flag not set, use with one of: read, write, sign, admin")
} }
perm := cctx.String("perm") perm := cctx.String("perm")