Skip to content

Commit

Permalink
Merge pull request #1232 from DataDog/juli1/STAL-1431
Browse files Browse the repository at this point in the history
[STAL-1431] static-analysis add explicit message
  • Loading branch information
juli1 authored Mar 15, 2024
2 parents f59d321 + b1072d1 commit afa1bff
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 afa1bff

Please sign in to comment.