Skip to content

Commit

Permalink
chore: improve "not found" error message
Browse files Browse the repository at this point in the history
  • Loading branch information
misterjoshua committed Feb 20, 2022
1 parent 8c5b724 commit a69a034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/cdk-exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function main(): Promise<number> {
.option('app', {
type: 'string',
alias: 'a',
default: 'cdk.out',
default: process.env.CDK_APP ?? 'cdk.out',
description: 'Path to your `cdk.out` cloud assembly directory',
})
.option('all', {
Expand Down Expand Up @@ -85,7 +85,7 @@ export async function cdkExec(options: CdkExecOptions): Promise<number> {
});

if (executors.length === 0) {
console.log('❌ Could not find a construct at the provided path');
console.log('❌ No matching executable constructs found');
return 1;
}

Expand Down

0 comments on commit a69a034

Please sign in to comment.