Skip to content

Commit ac39d89

Browse files
authored
Merge pull request #364 from salesforcecli/ekapner-doce-cli-error-msgs
docs: Update NoDefaultDoceEnv error message
2 parents bb6a7c8 + 4aeb2da commit ac39d89

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

messages/commonFlags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Show concise output of the command result.
5050

5151
# errors.NoDefaultDoceEnv
5252

53-
You must specify the DevOps Center org username by indicating the --devops-center-username flag on the command line or by setting the target-devops-center configuration variable.
53+
Before you run a DevOps Center CLI command, you must first use one of the "org login" commands to authorize the org in which DevOps Center is installed. Then, when you run a DevOps Center command, be sure that you specify the DevOps Center org username with the "--devops-center-username" flag. Alternatively, you can set the "target-devops-center" configuration variable to the username with the "config set" command.

test/commands/project/deploy/pipeline/quick.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('project deploy pipeline quick', () => {
122122
.catch(() => {})
123123
.it('runs project deploy pipeline quick without specifying any target Devops Center org', (ctx) => {
124124
expect(ctx.stderr).to.contain(
125-
'You must specify the DevOps Center org username by indicating the --devops-center-username flag on the command line or by setting the target-devops-center configuration variable.'
125+
'Before you run a DevOps Center CLI command, you must first use one of the "org login" commands to authorize the org in which DevOps Center is installed. Then, when you run a DevOps Center command, be sure that you specify the DevOps Center org username with the "--devops-center-username" flag. Alternatively, you can set the "target-devops-center" configuration variable to the username with the "config set" command.'
126126
);
127127
});
128128
});

test/commands/project/deploy/pipeline/report.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('project deploy pipeline report', () => {
5858
.catch(() => {})
5959
.it('runs project deploy pipeline report without specifying any target Devops Center org', (ctx) => {
6060
expect(ctx.stderr).to.contain(
61-
'You must specify the DevOps Center org username by indicating the --devops-center-username flag on the command line or by setting the target-devops-center configuration variable.'
61+
'Before you run a DevOps Center CLI command, you must first use one of the "org login" commands to authorize the org in which DevOps Center is installed. Then, when you run a DevOps Center command, be sure that you specify the DevOps Center org username with the "--devops-center-username" flag. Alternatively, you can set the "target-devops-center" configuration variable to the username with the "config set" command.'
6262
);
6363
});
6464
});

test/commands/project/deploy/pipeline/resume.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('project deploy pipeline resume', () => {
6161
.catch(() => {})
6262
.it('runs project deploy pipeline resume without specifying any target Devops Center org', (ctx) => {
6363
expect(ctx.stderr).to.contain(
64-
'You must specify the DevOps Center org username by indicating the --devops-center-username flag on the command line or by setting the target-devops-center configuration variable.'
64+
'Before you run a DevOps Center CLI command, you must first use one of the "org login" commands to authorize the org in which DevOps Center is installed. Then, when you run a DevOps Center command, be sure that you specify the DevOps Center org username with the "--devops-center-username" flag. Alternatively, you can set the "target-devops-center" configuration variable to the username with the "config set" command.'
6565
);
6666
});
6767
});

test/common/flags.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('requiredDoceOrgFlag', () => {
118118
} catch (err) {
119119
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
120120
expect(err.message).to.include(
121-
'You must specify the DevOps Center org username by indicating the --devops-center-username flag on the command line or by setting the target-devops-center configuration variable.'
121+
'Before you run a DevOps Center CLI command, you must first use one of the "org login" commands to authorize the org in which DevOps Center is installed. Then, when you run a DevOps Center command, be sure that you specify the DevOps Center org username with the "--devops-center-username" flag. Alternatively, you can set the "target-devops-center" configuration variable to the username with the "config set" command.'
122122
);
123123
}
124124
});

0 commit comments

Comments
 (0)