Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 9ce5439

Browse files
committed
Return not found error when acl check arg is not a dir nor a secret
1 parent ef12c89 commit 9ce5439

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internals/secrethub/acl_check.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ func (cmd *ACLCheckCommand) listLevels() ([]*api.AccessLevel, error) {
9797
return nil, err
9898
}
9999
return levels, nil
100+
} else {
101+
return nil, err
100102
}
101103
} else if err != nil {
102104
return nil, err

0 commit comments

Comments
 (0)