Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Fix line87

Anan1e82b043824d
diff --git a/internal/service/importer/importer_service.go b/internal/service/importer/importer_service.go
index 82572f85..2b53f7e3 100644
--- a/internal/service/importer/importer_service.go
+++ b/internal/service/importer/importer_service.go
@@ -21,6 +21,7 @@ package importer
import (
"context"
+ "fmt"
"github.com/apache/incubator-answer/internal/base/handler"
"github.com/apache/incubator-answer/internal/base/reason"
@@ -83,7 +84,7 @@ func (ip *ImporterService) ImportQuestion(ctx context.Context, questionInfo plug
return err
}
if !exist {
- log.Errorf("error: User Email not found")
+ return fmt.Errorf("User not found")
}
// To limit rate, remove the following code from comment: Part 2/2