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

add error handling #332

Merged
merged 1 commit into from
Feb 16, 2017
Merged

add error handling #332

merged 1 commit into from
Feb 16, 2017

Conversation

kazuminn
Copy link
Contributor

Because error handling was missing

Copy link
Member

@kotakanbe kotakanbe left a comment

Choose a reason for hiding this comment

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

Thanks for sending P/R.
I commented on it. I am waiting for fix.

@@ -357,6 +357,10 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}

history, err := loadOneScanHistory(jsonDir)

Copy link
Member

Choose a reason for hiding this comment

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

Please remove this blank line.

@@ -357,6 +357,10 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}

history, err := loadOneScanHistory(jsonDir)

if err != nil {
Log.Error(err)
Copy link
Member

Choose a reason for hiding this comment

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

Please fix as below.

if err != nil {
    util.Log.Error(err)
    return subcommands.ExitFailure
}

@kotakanbe
Copy link
Member

I will merge this P/R.
Would you merge in only one commit?
http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

I fixed it according to the review
@kotakanbe kotakanbe merged commit a6f0c55 into future-architect:master Feb 16, 2017
@kotakanbe
Copy link
Member

Many Thanks!!

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

Successfully merging this pull request may close these issues.

2 participants