Description
Hi, Maybe the fatal message is error?
https://github.com/go-gorm/gorm/blob/001738be49d26d341f88377d6006356573c9d045/tests/error_translator_test.go#L19
I think should be
if !errors.Is(err, untranslatedErr) {
t.Fatalf("expected err: %v got err: %v", untranslatedErr, err)
}
or
if errors.Is(err, translatedErr) {
t.Fatalf("expected err: %v got err: %v", untranslatedErr, translatedErr)
}
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: saeidee
@GGXXLL Yes, thanks for pointing it out, would you like to create a PR and change it?
Comment From: saeidee
Closing the issue since there is an open PR to refactor it https://github.com/go-gorm/gorm/pull/6350