Skip to content

Commit

Permalink
chore: Better error for secret deletes (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers authored Jan 7, 2025
1 parent 34f0327 commit 0916a0a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions commands/secret/deleteSecret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ exports.handler = async options => {
})
);
} catch (err) {
logger.error(
i18n(`${i18nKey}.errors.delete`, {
secretName,
})
);
if (secretName) {
logger.error(
i18n(`${i18nKey}.errors.delete`, {
secretName,
})
);
}
logError(
err,
new ApiErrorContext({
Expand Down

0 comments on commit 0916a0a

Please sign in to comment.