VaultsSecrets
handlers don't return a proper error object
#826
Labels
development
Standard development
VaultsSecrets
handlers don't return a proper error object
#826
Specification
Similarly, both handlers return a string if an error happens. This is not ideal. Instead, an error object like
SuccessOrErrorMessage
can instead be returned, and the error string can be built by the client themselves. This is done to an extent byVaultsSecretsMkdir
(see Additional context), but that approach is still incorrect, as VaultOps returns an error object instead of throwing an error. AllVaultOps
operations should throw an error, which should be handled and converted as necessary by the handler itself.Additional context
Tasks
The text was updated successfully, but these errors were encountered: