Skip to content

Commit

Permalink
add explicit message
Browse files Browse the repository at this point in the history
  • Loading branch information
juli1 committed Mar 15, 2024
1 parent f59d321 commit b1072d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/sbom/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ export class UploadSbomCommand extends Command {
}

if (!this.config.apiKey) {
this.context.stderr.write('API key not defined\n')
this.context.stderr.write('API key not defined, define the environment variable DD_API_KEY.\n')

return 1
}

if (!this.config.appKey) {
this.context.stderr.write('APP key not defined, define the environment variable DD_APP_KEY.\n')

return 1
}
Expand Down

0 comments on commit b1072d1

Please sign in to comment.