Skip to content

Set-SecretInfo needs different error if the exception came from the called script #132

Open
@JustinGrote

Description

@JustinGrote

Currently if an unhandled terminating exception occurs in Set-SecretInfo, it emits the following message:
Cannot set secret metadata PesterSecret2. Vault PESTER-MultipleEntries does not support secret metadata.

It should only emit this message if the module does not implement the function in its exported functions. If it is implemented, this should instead say:
There was an unexpected error when setting secret metadata PesterSecret2 in Vault PESTER-MultipleEntries. The details can be found in the InnerException

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions