Skip to content

Commit

Permalink
Proper error return when remote scraper returns empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jan 27, 2025
1 parent f6a5823 commit cc8e736
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/scraper/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ func handleConnection(conn net.Conn) {
}

if rm.instaData.Username == "" {
slog.Error("failed to get post ID", "err", err)
rm.outChan <- err
rm.outChan <- errors.New("remote scraper returns empty data")
return
}
rm.outChan <- nil
Expand Down

0 comments on commit cc8e736

Please sign in to comment.