Skip to content

Commit

Permalink
Merge branch 'main' into PDE-5602
Browse files Browse the repository at this point in the history
  • Loading branch information
rnegron committed Jan 21, 2025
2 parents f7ea20b + 019cca5 commit 2c19d78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/oclif/commands/env/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SetEnvCommand extends BaseCommand {
this.log(successMessage(version));
this.logJSON(payload);
} catch (e) {
if (e.statusCode === 409) {
if (e.status === 409) {
this.error(
`App version ${version} is the production version. Are you sure you want to set potentially live environment variables?` +
` If so, run this command again with the --force flag.`,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/oclif/commands/env/unset.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UnsetEnvCommand extends BaseCommand {
try {
await callAPI(url, requestOptions);
} catch (e) {
if (e.statusCode === 409) {
if (e.status === 409) {
this.error(
`App version ${version} is the production version. Are you sure you want to unset potentially live environment variables?` +
` If so, run this command again with the --force flag.`,
Expand Down

0 comments on commit 2c19d78

Please sign in to comment.