Skip to content

Commit

Permalink
Return error when remote scrape returns nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jan 27, 2025
1 parent 9a45879 commit 095d4c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions handlers/scraper/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ func handleConnection(conn net.Conn) {
rm.outChan <- err
return
}

if rm.instaData.Username == "" {
slog.Error("failed to get post ID", "err", err)
rm.outChan <- err
return
}
rm.outChan <- nil
}
}(stream)
Expand Down

0 comments on commit 095d4c3

Please sign in to comment.