Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default error value changed when an API key is not provided #275

Merged
merged 2 commits into from
Sep 19, 2018

Conversation

zlav
Copy link
Member

@zlav zlav commented Sep 19, 2018

No description provided.

@zlav zlav requested a review from elldritch September 19, 2018 21:30
@zlav
Copy link
Member Author

zlav commented Sep 19, 2018

#274

@@ -64,7 +66,8 @@ func Run(ctx *cli.Context) error {
}

if config.APIKey() == "" && !ctx.Bool(analyze.ShowOutput) {
return cli.ShowAppHelp(ctx)
fmt.Printf("Incorrect Usage. FOSSA_API_KEY must be set as an environment variable or provided in .fossa.yml\n\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] Let's actually log.Fatal for now since error handling at the top level is kind of weird.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 35.29% when pulling 5643e49 on fix/noApiKeyOutput into c0badce on master.

@zlav zlav merged commit 5e040f8 into master Sep 19, 2018
@zlav zlav deleted the fix/noApiKeyOutput branch September 20, 2018 06:00
meghfossa pushed a commit that referenced this pull request Nov 12, 2021
* Should non-zero when syft fails

* use logWithExit_ for report and test commands

* update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants