Skip to content

Conversation

@andy-y-li
Copy link

Add parser module for commit message.

}
commits, err := p.Unmarshal([]byte(jsonStr))
if nil != err {
fmt.Println(err)
Copy link
Owner

Choose a reason for hiding this comment

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

Hi @andy-y-li , can you add a proper error message here instead of only logging the error?

to_idx += p.Head
commit, err := p.parseStr(from_idx, to_idx)
if err != nil {
fmt.Println(err)
Copy link
Owner

Choose a reason for hiding this comment

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

@andy-y-li please also add a proper error message here

} else { // end of parser laster one
commit, err := p.parseStr(from_idx, p.Len-1)
if err != nil {
fmt.Println(err)
Copy link
Owner

Choose a reason for hiding this comment

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

@andy-y-li please also add a proper error message here

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.

2 participants