File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/cli/src/oclif/commands/env Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class SetEnvCommand extends BaseCommand {
62
62
this . log ( successMessage ( version ) ) ;
63
63
this . logJSON ( payload ) ;
64
64
} catch ( e ) {
65
- if ( e . statusCode === 409 ) {
65
+ if ( e . status === 409 ) {
66
66
this . error (
67
67
`App version ${ version } is the production version. Are you sure you want to set potentially live environment variables?` +
68
68
` If so, run this command again with the --force flag.` ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class UnsetEnvCommand extends BaseCommand {
56
56
try {
57
57
await callAPI ( url , requestOptions ) ;
58
58
} catch ( e ) {
59
- if ( e . statusCode === 409 ) {
59
+ if ( e . status === 409 ) {
60
60
this . error (
61
61
`App version ${ version } is the production version. Are you sure you want to unset potentially live environment variables?` +
62
62
` If so, run this command again with the --force flag.` ,
You can’t perform that action at this time.
0 commit comments