Skip to content

Commit

Permalink
Merge pull request #364 from salesforcecli/ekapner-doce-cli-error-msgs
Browse files Browse the repository at this point in the history
docs: Update NoDefaultDoceEnv error message
  • Loading branch information
ekapner authored May 16, 2024
2 parents bb6a7c8 + 4aeb2da commit ac39d89
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion messages/commonFlags.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ Show concise output of the command result.

# errors.NoDefaultDoceEnv

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.
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.
2 changes: 1 addition & 1 deletion test/commands/project/deploy/pipeline/quick.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('project deploy pipeline quick', () => {
.catch(() => {})
.it('runs project deploy pipeline quick without specifying any target Devops Center org', (ctx) => {
expect(ctx.stderr).to.contain(
'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.'
'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.'
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/commands/project/deploy/pipeline/report.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('project deploy pipeline report', () => {
.catch(() => {})
.it('runs project deploy pipeline report without specifying any target Devops Center org', (ctx) => {
expect(ctx.stderr).to.contain(
'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.'
'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.'
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/commands/project/deploy/pipeline/resume.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('project deploy pipeline resume', () => {
.catch(() => {})
.it('runs project deploy pipeline resume without specifying any target Devops Center org', (ctx) => {
expect(ctx.stderr).to.contain(
'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.'
'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.'
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/common/flags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('requiredDoceOrgFlag', () => {
} catch (err) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(err.message).to.include(
'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.'
'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.'
);
}
});
Expand Down

0 comments on commit ac39d89

Please sign in to comment.