We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Two errors with the same messsage but constructed differently when compared produce a diff that looks identical
https://play.golang.org/p/i3y-6_rqonr
package main import ( "fmt" "errors" "github.com/google/go-cmp/cmp" ) func main() { e1 := errors.New("Hello world!") e2 := fmt.Errorf("Hello %w", errors.New("world!")) fmt.Println(cmp.Diff(e1, e2)) }
Results in
interface{}( - e"Hello world!", + e"Hello world!", )
The text was updated successfully, but these errors were encountered:
Thanks for the report. It is a known issue with the reporter that it needs to do more work trying to disambiguate cases like these.
Sorry, something went wrong.
Closing as duplicate of #194
No branches or pull requests
Two errors with the same messsage but constructed differently when compared produce a diff that looks identical
https://play.golang.org/p/i3y-6_rqonr
Results in
The text was updated successfully, but these errors were encountered: