Skip to content

Commit 1e82b04

Browse files
Anan1225LinkinStars
authored andcommitted
Fix line87
1 parent 2fd6ac3 commit 1e82b04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: internal/service/importer/importer_service.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package importer
2121

2222
import (
2323
"context"
24+
"fmt"
2425

2526
"github.com/apache/incubator-answer/internal/base/handler"
2627
"github.com/apache/incubator-answer/internal/base/reason"
@@ -83,7 +84,7 @@ func (ip *ImporterService) ImportQuestion(ctx context.Context, questionInfo plug
8384
return err
8485
}
8586
if !exist {
86-
log.Errorf("error: User Email not found")
87+
return fmt.Errorf("User not found")
8788
}
8889

8990
// To limit rate, remove the following code from comment: Part 2/2

0 commit comments

Comments
 (0)