Djarvur / go-err113

Golang linter to check the errors handling expressions
MIT License
45 stars 4 forks source link

Fix a bug with long error message #17

Closed takady closed 3 years ago

takady commented 3 years ago

I could see do not define dynamic errors, use wrapped static errors instead when the format string is longer than a certain length, even though it wraps an error properly. That's because of using String() which returns a shortened string if the value is long. (ref: https://golang.org/pkg/go/constant/#Value)

onokonem commented 3 years ago

Merging is blocked The base branch requires all commits to be signed. Learn more about signing commits.

@takady, would you be able to recreate your commits, or should I recreate your PR myself?

takady commented 3 years ago

@onokonem I just recreated my commit with sign!