diff --git a/account/account.go b/account/account.go index 3a4228b..86535f3 100644 --- a/account/account.go +++ b/account/account.go @@ -202,7 +202,7 @@ func (s AccountServiceDefault) VerifyEmail(email string, token string) error { if result.Error != nil { if errors.Is(result.Error, gorm.ErrRecordNotFound) { - return NewAccountError(ErrKeyEmailVerificationFailed, result.Error) + return NewAccountError(ErrKeyEmailVerificationFailed, nil) } return NewAccountError(ErrKeyDatabaseOperationFailed, result.Error)