This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 1e82b043824d95ec86b235d39ef1c87b105f1915 Author: Anan <[email protected]> AuthorDate: Wed Oct 16 03:07:25 2024 +0000 Fix line87 --- internal/service/importer/importer_service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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
